﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My;
    using ACCOUNTING.My.Resources;
    using C1.Win.C1Command;
    using C1.Win.C1FlexGrid;
    using C1.Win.C1FlexGrid.Util.BaseControls;
    using C1.Win.C1Input;
    using Microsoft.VisualBasic;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_NhapKhau : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("AdvAccount2")]
        private ADVAccount _AdvAccount2;
        [AccessedThroughProperty("AdvAccount3")]
        private ADVAccount _AdvAccount3;
        [AccessedThroughProperty("AdvNhaCungCap")]
        private ADVObjects _AdvNhaCungCap;
        [AccessedThroughProperty("AdvNhaCungCapPhiNK")]
        private ADVObjects _AdvNhaCungCapPhiNK;
        [AccessedThroughProperty("AdvObjects2")]
        private ADVObjects _AdvObjects2;
        [AccessedThroughProperty("AdvTaiKhoanCo")]
        private ADVAccount _AdvTaiKhoanCo;
        [AccessedThroughProperty("AdvTaiKhoanCoThueGTGT")]
        private ADVAccount _AdvTaiKhoanCoThueGTGT;
        [AccessedThroughProperty("AdvTaiKhoanNoThueGTGT")]
        private ADVAccount _AdvTaiKhoanNoThueGTGT;
        [AccessedThroughProperty("AdvTKThanhToan")]
        private ADVAccount _AdvTKThanhToan;
        [AccessedThroughProperty("AdvTKThue")]
        private ADVAccount _AdvTKThue;
        [AccessedThroughProperty("AdvTKThueNhapKhau")]
        private ADVAccount _AdvTKThueNhapKhau;
        [AccessedThroughProperty("C1DockingTab1")]
        private C1DockingTab _C1DockingTab1;
        [AccessedThroughProperty("C1DockingTab2")]
        private C1DockingTab _C1DockingTab2;
        [AccessedThroughProperty("C1DockingTabPage1")]
        private C1DockingTabPage _C1DockingTabPage1;
        [AccessedThroughProperty("C1DockingTabPage2")]
        private C1DockingTabPage _C1DockingTabPage2;
        [AccessedThroughProperty("C1DockingTabPage3")]
        private C1DockingTabPage _C1DockingTabPage3;
        [AccessedThroughProperty("CboKhaiThue")]
        private ComboBox _CboKhaiThue;
        [AccessedThroughProperty("CboLoaiHoaDonCP")]
        private ComboBox _CboLoaiHoaDonCP;
        [AccessedThroughProperty("CboLoaiTien")]
        private ComboBox _CboLoaiTien;
        [AccessedThroughProperty("CboLoaiTienCP")]
        private ComboBox _CboLoaiTienCP;
        [AccessedThroughProperty("CboPhanBo")]
        private ComboBox _CboPhanBo;
        [AccessedThroughProperty("CboPhanBoCP")]
        private ComboBox _CboPhanBoCP;
        [AccessedThroughProperty("CKPhanBoPhi")]
        private CheckBox _CKPhanBoPhi;
        [AccessedThroughProperty("CmdAdd")]
        private ToolStripButton _CmdAdd;
        [AccessedThroughProperty("CmdAddRow")]
        private Button _CmdAddRow;
        [AccessedThroughProperty("CmdBoGhiSo")]
        private ToolStripButton _CmdBoGhiSo;
        [AccessedThroughProperty("CmdChiPhi")]
        private ToolStripButton _CmdChiPhi;
        [AccessedThroughProperty("CmdCopy")]
        private Button _CmdCopy;
        [AccessedThroughProperty("CmdDel")]
        private ToolStripButton _CmdDel;
        [AccessedThroughProperty("CmdDelRow")]
        private Button _CmdDelRow;
        [AccessedThroughProperty("CmdEdit")]
        private ToolStripButton _CmdEdit;
        [AccessedThroughProperty("CmdExit")]
        private ToolStripButton _CmdExit;
        [AccessedThroughProperty("CmdFind")]
        private ToolStripButton _CmdFind;
        [AccessedThroughProperty("CmdGhiSo")]
        private ToolStripButton _CmdGhiSo;
        [AccessedThroughProperty("CmdHelp")]
        private ToolStripButton _CmdHelp;
        [AccessedThroughProperty("CmdPrint")]
        private ToolStripButton _CmdPrint;
        [AccessedThroughProperty("CmdSave")]
        private ToolStripButton _CmdSave;
        [AccessedThroughProperty("CmdTimDonHang")]
        private Button _CmdTimDonHang;
        [AccessedThroughProperty("CmdUnsave")]
        private ToolStripButton _CmdUnsave;
        [AccessedThroughProperty("ComboBox1")]
        private ComboBox _ComboBox1;
        [AccessedThroughProperty("ComboBox2")]
        private ComboBox _ComboBox2;
        [AccessedThroughProperty("DateTimePicker2")]
        private DateTimePicker _DateTimePicker2;
        [AccessedThroughProperty("DateTimePicker3")]
        private DateTimePicker _DateTimePicker3;
        [AccessedThroughProperty("DateTimePicker4")]
        private DateTimePicker _DateTimePicker4;
        [AccessedThroughProperty("DateTimePicker5")]
        private DateTimePicker _DateTimePicker5;
        [AccessedThroughProperty("GroupBox1")]
        private GroupBox _GroupBox1;
        [AccessedThroughProperty("GroupBox2")]
        private GroupBox _GroupBox2;
        [AccessedThroughProperty("Label1")]
        private Label _Label1;
        [AccessedThroughProperty("Label10")]
        private Label _Label10;
        [AccessedThroughProperty("Label11")]
        private Label _Label11;
        [AccessedThroughProperty("Label12")]
        private Label _Label12;
        [AccessedThroughProperty("Label13")]
        private Label _Label13;
        [AccessedThroughProperty("Label14")]
        private Label _Label14;
        [AccessedThroughProperty("Label15")]
        private Label _Label15;
        [AccessedThroughProperty("Label16")]
        private Label _Label16;
        [AccessedThroughProperty("Label17")]
        private Label _Label17;
        [AccessedThroughProperty("Label18")]
        private Label _Label18;
        [AccessedThroughProperty("Label19")]
        private Label _Label19;
        [AccessedThroughProperty("Label2")]
        private Label _Label2;
        [AccessedThroughProperty("Label20")]
        private Label _Label20;
        [AccessedThroughProperty("Label21")]
        private Label _Label21;
        [AccessedThroughProperty("Label22")]
        private Label _Label22;
        [AccessedThroughProperty("Label23")]
        private Label _Label23;
        [AccessedThroughProperty("Label24")]
        private Label _Label24;
        [AccessedThroughProperty("Label25")]
        private Label _Label25;
        [AccessedThroughProperty("Label26")]
        private Label _Label26;
        [AccessedThroughProperty("Label27")]
        private Label _Label27;
        [AccessedThroughProperty("Label28")]
        private Label _Label28;
        [AccessedThroughProperty("Label29")]
        private Label _Label29;
        [AccessedThroughProperty("Label30")]
        private Label _Label30;
        [AccessedThroughProperty("Label31")]
        private Label _Label31;
        [AccessedThroughProperty("Label32")]
        private Label _Label32;
        [AccessedThroughProperty("Label33")]
        private Label _Label33;
        [AccessedThroughProperty("Label34")]
        private Label _Label34;
        [AccessedThroughProperty("Label35")]
        private Label _Label35;
        [AccessedThroughProperty("Label36")]
        private Label _Label36;
        [AccessedThroughProperty("Label37")]
        private Label _Label37;
        [AccessedThroughProperty("Label38")]
        private Label _Label38;
        [AccessedThroughProperty("Label39")]
        private Label _Label39;
        [AccessedThroughProperty("Label4")]
        private Label _Label4;
        [AccessedThroughProperty("Label40")]
        private Label _Label40;
        [AccessedThroughProperty("Label41")]
        private Label _Label41;
        [AccessedThroughProperty("Label42")]
        private Label _Label42;
        [AccessedThroughProperty("Label43")]
        private Label _Label43;
        [AccessedThroughProperty("Label44")]
        private Label _Label44;
        [AccessedThroughProperty("Label45")]
        private Label _Label45;
        [AccessedThroughProperty("Label46")]
        private Label _Label46;
        [AccessedThroughProperty("Label47")]
        private Label _Label47;
        [AccessedThroughProperty("Label48")]
        private Label _Label48;
        [AccessedThroughProperty("Label49")]
        private Label _Label49;
        [AccessedThroughProperty("Label5")]
        private Label _Label5;
        [AccessedThroughProperty("Label50")]
        private Label _Label50;
        [AccessedThroughProperty("Label51")]
        private Label _Label51;
        [AccessedThroughProperty("Label52")]
        private Label _Label52;
        [AccessedThroughProperty("Label53")]
        private Label _Label53;
        [AccessedThroughProperty("Label54")]
        private Label _Label54;
        [AccessedThroughProperty("Label55")]
        private Label _Label55;
        [AccessedThroughProperty("Label56")]
        private Label _Label56;
        [AccessedThroughProperty("Label57")]
        private Label _Label57;
        [AccessedThroughProperty("Label58")]
        private Label _Label58;
        [AccessedThroughProperty("Label59")]
        private Label _Label59;
        [AccessedThroughProperty("Label6")]
        private Label _Label6;
        [AccessedThroughProperty("Label60")]
        private Label _Label60;
        [AccessedThroughProperty("Label61")]
        private Label _Label61;
        [AccessedThroughProperty("Label62")]
        private Label _Label62;
        [AccessedThroughProperty("Label63")]
        private Label _Label63;
        [AccessedThroughProperty("Label64")]
        private Label _Label64;
        [AccessedThroughProperty("Label65")]
        private Label _Label65;
        [AccessedThroughProperty("Label66")]
        private Label _Label66;
        [AccessedThroughProperty("Label67")]
        private Label _Label67;
        [AccessedThroughProperty("Label68")]
        private Label _Label68;
        [AccessedThroughProperty("Label69")]
        private Label _Label69;
        [AccessedThroughProperty("Label8")]
        private Label _Label8;
        [AccessedThroughProperty("Label9")]
        private Label _Label9;
        [AccessedThroughProperty("Panel4")]
        private Panel _Panel4;
        [AccessedThroughProperty("Panel5")]
        private Panel _Panel5;
        [AccessedThroughProperty("TextBox2")]
        private TextBox _TextBox2;
        [AccessedThroughProperty("TextBox3")]
        private TextBox _TextBox3;
        [AccessedThroughProperty("TextBox4")]
        private TextBox _TextBox4;
        [AccessedThroughProperty("TextBox5")]
        private TextBox _TextBox5;
        [AccessedThroughProperty("TextBox6")]
        private TextBox _TextBox6;
        [AccessedThroughProperty("TextBox7")]
        private TextBox _TextBox7;
        [AccessedThroughProperty("ToolStrip1")]
        private ToolStrip _ToolStrip1;
        [AccessedThroughProperty("ToolStripButton1")]
        private ToolStripSeparator _ToolStripButton1;
        [AccessedThroughProperty("ToolStripSeparator1")]
        private ToolStripSeparator _ToolStripSeparator1;
        [AccessedThroughProperty("ToolStripSeparator2")]
        private ToolStripSeparator _ToolStripSeparator2;
        [AccessedThroughProperty("ToolStripSeparator3")]
        private ToolStripSeparator _ToolStripSeparator3;
        [AccessedThroughProperty("ToolStripSeparator5")]
        private ToolStripSeparator _ToolStripSeparator5;
        [AccessedThroughProperty("TxtChiPhiPhanBo")]
        private C1NumericEdit _TxtChiPhiPhanBo;
        [AccessedThroughProperty("TxtCongPhi")]
        private C1NumericEdit _TxtCongPhi;
        [AccessedThroughProperty("TxtCongPhiNT")]
        private C1NumericEdit _TxtCongPhiNT;
        [AccessedThroughProperty("TxtDienGiai")]
        private TextBox _TxtDienGiai;
        [AccessedThroughProperty("TxtDienGiaiPhiNK")]
        private TextBox _TxtDienGiaiPhiNK;
        [AccessedThroughProperty("TxtHanNopThue")]
        private C1NumericEdit _TxtHanNopThue;
        [AccessedThroughProperty("TxtHanThanhToan")]
        private C1NumericEdit _TxtHanThanhToan;
        [AccessedThroughProperty("TxtNgayChungTu")]
        private DateTimePicker _TxtNgayChungTu;
        [AccessedThroughProperty("TxtNgayDathang")]
        private DateTimePicker _TxtNgayDathang;
        [AccessedThroughProperty("TxtNgayHoaDon")]
        private DateTimePicker _TxtNgayHoaDon;
        [AccessedThroughProperty("TxtNgayHoaDonCP")]
        private DateTimePicker _TxtNgayHoaDonCP;
        [AccessedThroughProperty("TxtNgayHoaDonNK")]
        private DateTimePicker _TxtNgayHoaDonNK;
        [AccessedThroughProperty("TxtNgayNopThue")]
        private DateTimePicker _TxtNgayNopThue;
        [AccessedThroughProperty("TxtNgayToiHanThanhToan")]
        private DateTimePicker _TxtNgayToiHanThanhToan;
        [AccessedThroughProperty("TxtSoChungTu")]
        private TextBox _TxtSoChungTu;
        [AccessedThroughProperty("TxtSoDonHang")]
        private TextBox _TxtSoDonHang;
        [AccessedThroughProperty("TxtSoHoaDon")]
        private TextBox _TxtSoHoaDon;
        [AccessedThroughProperty("TxtSoHoaDonCP")]
        private TextBox _TxtSoHoaDonCP;
        [AccessedThroughProperty("TxtSoHoaDonThueNK")]
        private TextBox _TxtSoHoaDonThueNK;
        [AccessedThroughProperty("TxtSoHopDong")]
        private TextBox _TxtSoHopDong;
        [AccessedThroughProperty("TxtSoLuong")]
        private C1NumericEdit _TxtSoLuong;
        [AccessedThroughProperty("TxtSoSeri")]
        private TextBox _TxtSoSeri;
        [AccessedThroughProperty("TxtSoSeriCP")]
        private TextBox _TxtSoSeriCP;
        [AccessedThroughProperty("TxtSoToKhai")]
        private TextBox _TxtSoToKhai;
        [AccessedThroughProperty("TxtThueSuat")]
        private C1NumericEdit _TxtThueSuat;
        [AccessedThroughProperty("TxtThueSuatCP")]
        private C1NumericEdit _TxtThueSuatCP;
        [AccessedThroughProperty("TxtTienPhiCP")]
        private C1NumericEdit _TxtTienPhiCP;
        [AccessedThroughProperty("TxtTienPhiCPNT")]
        private C1NumericEdit _TxtTienPhiCPNT;
        [AccessedThroughProperty("TxtTienThuePhi")]
        private C1NumericEdit _TxtTienThuePhi;
        [AccessedThroughProperty("TxtTienThuePhiNT")]
        private C1NumericEdit _TxtTienThuePhiNT;
        [AccessedThroughProperty("TxtTongCong")]
        private C1NumericEdit _TxtTongCong;
        [AccessedThroughProperty("TxtTongThanhToan")]
        private C1NumericEdit _TxtTongThanhToan;
        [AccessedThroughProperty("TxtTongThanhToanNT")]
        private C1NumericEdit _TxtTongThanhToanNT;
        [AccessedThroughProperty("TxtTongThuePhiNK")]
        private C1NumericEdit _TxtTongThuePhiNK;
        [AccessedThroughProperty("TxtTongThuePhiNKNT")]
        private C1NumericEdit _TxtTongThuePhiNKNT;
        [AccessedThroughProperty("TxtTongTienHang")]
        private C1NumericEdit _TxtTongTienHang;
        [AccessedThroughProperty("TxtTongTienHangNT")]
        private C1NumericEdit _TxtTongTienHangNT;
        [AccessedThroughProperty("TxtTongTienPhi")]
        private C1NumericEdit _TxtTongTienPhi;
        [AccessedThroughProperty("TxtTongTienPhiNK")]
        private C1NumericEdit _TxtTongTienPhiNK;
        [AccessedThroughProperty("TxtTongTienPhiNKNT")]
        private C1NumericEdit _TxtTongTienPhiNKNT;
        [AccessedThroughProperty("TxtTongTienPhiNT")]
        private C1NumericEdit _TxtTongTienPhiNT;
        [AccessedThroughProperty("TxtTongTienThue")]
        private C1NumericEdit _TxtTongTienThue;
        [AccessedThroughProperty("TxtTongTienThueNhapKhau")]
        private C1NumericEdit _TxtTongTienThueNhapKhau;
        [AccessedThroughProperty("TxtTongTienThueNhapKhauNT")]
        private C1NumericEdit _TxtTongTienThueNhapKhauNT;
        [AccessedThroughProperty("TxtTongTienThueNT")]
        private C1NumericEdit _TxtTongTienThueNT;
        [AccessedThroughProperty("txtTyGia")]
        private C1NumericEdit _txtTyGia;
        [AccessedThroughProperty("TxtTyGiaCP")]
        private C1NumericEdit _TxtTyGiaCP;
        [AccessedThroughProperty("VSlist")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSlist;
        private string cFrmFormat;
        public string cFrmKhoa;
        private string cFrmKhoaOld;
        private string cFrmTask;
        private IContainer components;
        private bool IsLoaded;
        private bool mAllowAdd;
        private bool mAllowDel;
        private bool mAllowEdit;
        private bool mAllowView;
        private bool mEnabledControl;
        private string mLoaiChungTu;
        private clsNhapKho objNK;
        private clsNhapKhoChiTiet objNKCT;
        private clsSoChungTu objSoCT;

        public Frm_NhapKhau()
        {
            base.KeyDown += new KeyEventHandler(this.Frm_NhapKhau_KeyDown);
            base.Load += new EventHandler(this.Frm_NhapKhau_Load);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.mLoaiChungTu = "NKNN";
            this.objSoCT = new clsSoChungTu();
            this.cFrmKhoa = "";
            this.cFrmKhoaOld = "";
            this.objNK = new clsNhapKho();
            this.objNKCT = new clsNhapKhoChiTiet();
            this.cFrmTask = "";
            this.InitializeComponent();
        }

        private void AdvNhaCungCap_ValueChanged(object sender, EventArgs e)
        {
            if (this.mEnabledControl)
            {
                if (this.AdvNhaCungCap.Value.Trim() == "")
                {
                    this.TxtDienGiai.Text = "";
                    this.AdvNhaCungCapPhiNK.Value = "";
                }
                else
                {
                    this.AdvNhaCungCapPhiNK.Value = this.AdvNhaCungCap.Value;
                    this.TxtDienGiai.Text = modGeneral.Tranlated("Nhập khẩu từ nh\x00e0 cung cấp", "") + ": " + this.AdvNhaCungCap.TxtName.Text;
                }
            }
        }

        private void CboLoaiHoaDonCP_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboLoaiHoaDonCP.SelectedValue), "", modGeneral.TypeOfValue.Nothing).ToString().Trim() != "")
            {
                clsDMLoaiHoaDon don = new clsDMLoaiHoaDon();
                don.Load(this.CboLoaiHoaDonCP.SelectedValue.ToString());
                this.TxtThueSuatCP.Value = don.TyLeThue;
            }
        }

        private void CboLoaiTien_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboLoaiTien.SelectedValue), "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
            {
                this.txtTyGia.Value = 0;
            }
            else
            {
                string strCode = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboLoaiTien.SelectedValue), "", modGeneral.TypeOfValue.Nothing).ToString().Trim();
                if (strCode != "")
                {
                    clsDMLoaiTien tien = new clsDMLoaiTien();
                    tien.LoadByCode(strCode);
                    if (tien.SoLe > 0)
                    {
                        this.cFrmFormat = modGeneral.H_FORMATNUMBER + "." + LVYModule.sRight("0000000000", tien.SoLe);
                    }
                    if (tien.TienViet == 1)
                    {
                        this.txtTyGia.Enabled = false;
                    }
                    else
                    {
                        this.txtTyGia.Enabled = true;
                    }
                    this.txtTyGia.Value = tien.TyGia;
                    this.CboLoaiTienCP.SelectedValue = RuntimeHelpers.GetObjectValue(this.CboLoaiTien.SelectedValue);
                    this.TxtTyGiaCP.Value = RuntimeHelpers.GetObjectValue(this.txtTyGia.Value);
                    this.FormatNumber();
                }
            }
        }

        private void CboPhanBo_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (this.IsLoaded)
            {
                this.PhanBoPhi();
                this.TinhTong();
            }
        }

        public bool CheckGrid()
        {
            if (this.VSlist.Rows.Count == 2)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn chưa nhập h\x00e0ng h\x00f3a nhập kho!", ""));
                this.CmdAddRow.Focus();
                return false;
            }
            int num2 = this.VSlist.Rows.Count - 1;
            for (int i = 2; i <= num2; i++)
            {
                if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[i, 3]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
                {
                    LVYModule.ShowWarning(modGeneral.Tranlated("Bạn chưa nhập h\x00e0ng h\x00f3a nhập kho!", ""));
                    this.VSlist.Focus();
                    this.VSlist.Select(i, 4);
                    return false;
                }
                if ((Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[i, 13]), 0, modGeneral.TypeOfValue.Nothing)) + Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[i, 15]), 0, modGeneral.TypeOfValue.Nothing))) == 0.0)
                {
                    LVYModule.ShowWarning(modGeneral.Tranlated("Bạn chưa nhập số lượng hoặc trị gi\x00e1 h\x00e0ng nhập kho!", ""));
                    this.VSlist.Focus();
                    this.VSlist.Select(i, 13);
                    return false;
                }
            }
            return true;
        }

        public bool CheckIvalid()
        {
            if (!LVYModule.CheckDateLock(LVYModule.Date2Char(this.TxtNgayChungTu.Text)))
            {
                return false;
            }
            if (LVYModule.ReturnIfNull(this.TxtSoChungTu.Text, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Số chứng từ kh\x00f4ng được để trốnng! Bạn vui l\x00f2ng nhập số chứng từ.", ""));
                this.TxtSoChungTu.Focus();
            }
            if (this.objNK.IsDuplicateVoucherNo(this.TxtSoChungTu.Text, this.cFrmKhoa))
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Số chứng từ bị tr\x00f9ng! bạn vui l\x00f2ng nhập số chứng từ kh\x00e1c.", ""));
                this.TxtSoChungTu.Focus();
                return false;
            }
            if (!LVYModule.CheckDateLock(LVYModule.Date2Char(this.TxtNgayChungTu.Text)))
            {
                return false;
            }
            if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboLoaiTien.SelectedValue), "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn vui l\x00f2ng nhập loại nguy\x00ean tệ hạch to\x00e1n!", ""));
                this.CboLoaiTien.Focus();
                return false;
            }
            if (Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.txtTyGia.Value), 0, modGeneral.TypeOfValue.Nothing)) == 0.0)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn vui l\x00f2ng nhập tỷ gi\x00e1 nguy\x00ean tệ!", ""));
                this.txtTyGia.Focus();
                return false;
            }
            if (LVYModule.ReturnIfNull(this.AdvNhaCungCap.Value, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn vui l\x00f2ng nhập nh\x00e0 cung cấp!", ""));
                this.AdvNhaCungCap.Focus();
                return false;
            }
            if (LVYModule.ReturnIfNull(this.AdvTaiKhoanCo.Value, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn vui l\x00f2ng nhập t\x00e0i khoản thanh to\x00e1n!", ""));
                this.AdvTaiKhoanCo.Focus();
                return false;
            }
            if (LVYModule.ReturnIfNull(this.AdvTKThueNhapKhau.Value, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn vui l\x00f2ng nhập t\x00e0i khoản thuế nhập khẩu!", ""));
                this.AdvTKThueNhapKhau.Focus();
                return false;
            }
            if (LVYModule.ReturnIfNull(this.AdvTaiKhoanNoThueGTGT.Value, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn vui l\x00f2ng nhập t\x00e0i khoản nợ thuế GTGT!", ""));
                this.AdvTaiKhoanNoThueGTGT.Focus();
                return false;
            }
            if (LVYModule.ReturnIfNull(this.AdvTaiKhoanCoThueGTGT.Value, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn vui l\x00f2ng nhập t\x00e0i khoản c\x00f3 thuế GTGT!", ""));
                this.AdvTaiKhoanCoThueGTGT.Focus();
                return false;
            }
            if ((Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTienPhiCPNT.Value), 0, modGeneral.TypeOfValue.Nothing)) != 0.0) && (LVYModule.ReturnIfNull(this.AdvTKThanhToan.Value, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == ""))
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn vui l\x00f2ng nhập t\x00e0i khoản thanh to\x00e1n chi ph\x00ed nhập khẩu!", ""));
                this.AdvTKThanhToan.Focus();
                return false;
            }
            if (!this.CheckGrid())
            {
                return false;
            }
            return true;
        }

        private void CKPhanBoPhi_Click(object sender, EventArgs e)
        {
            if (this.CKPhanBoPhi.CheckState == CheckState.Checked)
            {
                this.TxtChiPhiPhanBo.ReadOnly = false;
                this.CboPhanBo.Enabled = true;
                this.VSlist.Cols[0x11].Visible = true;
                this.VSlist.Cols[0x12].Visible = true;
            }
            else
            {
                this.TxtChiPhiPhanBo.Value = RuntimeHelpers.GetObjectValue(this.TxtTongTienPhiNT.Value);
                this.TxtChiPhiPhanBo.ReadOnly = true;
                this.CboPhanBo.Enabled = false;
                this.VSlist.Cols[0x11].Visible = false;
                this.VSlist.Cols[0x12].Visible = false;
            }
        }

        private void CmdAdd_Click(object sender, EventArgs e)
        {
            if (this.cFrmKhoa.Trim() != "")
            {
                this.cFrmKhoaOld = this.cFrmKhoa;
            }
            this.EmptyData();
            this.cFrmKhoa = modGeneral.CreatKey("ST_NhapKhau", 15, "IM");
            this.objSoCT.Load(this.mLoaiChungTu);
            this.TxtSoChungTu.Text = this.objSoCT.CreateVoucher(LVYModule.sLeft(LVYModule.Date2Char(this.TxtNgayChungTu.Text), 6), 1);
            this.CboLoaiTien.SelectedValue = "USD";
            this.EnabledControl = true;
            this.TxtSoChungTu.Focus();
            this.InitDefault();
            this.cFrmTask = "I";
            this.TxtDienGiaiPhiNK.Text = modGeneral.Tranlated("Chi ph\x00ed nhập khẩu", "");
            this.CboKhaiThue.SelectedIndex = 0;
            this.CboLoaiHoaDonCP.SelectedIndex = 0;
        }

        private void CmdAddRow_Click(object sender, EventArgs e)
        {
            if (this.VSlist.Rows.Count == 2)
            {
                this.VSlist.AddItem("");
                this.VSlist[this.VSlist.Rows.Count - 1, 0x17] = Conversions.ToInteger(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtThueSuat.Value), 0, modGeneral.TypeOfValue.Nothing));
                if (LVYModule.ReturnIfNull(modGeneral.H_STOCKID, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() != "")
                {
                    clsDMKho kho = new clsDMKho();
                    kho.Load(modGeneral.H_STOCKID);
                    this.VSlist[this.VSlist.Rows.Count - 1, 7] = "";
                    this.VSlist[this.VSlist.Rows.Count - 1, 1] = kho.Khoa;
                    this.VSlist[this.VSlist.Rows.Count - 1, 2] = kho.Ma;
                }
            }
            else
            {
                if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[this.VSlist.Rows.Count - 1, 3]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
                {
                    return;
                }
                this.VSlist.AddItem("");
                this.VSlist[this.VSlist.Rows.Count - 1, 7] = "";
                this.VSlist[this.VSlist.Rows.Count - 1, 1] = RuntimeHelpers.GetObjectValue(this.VSlist[this.VSlist.Rows.Count - 2, 1]);
                this.VSlist[this.VSlist.Rows.Count - 1, 2] = RuntimeHelpers.GetObjectValue(this.VSlist[this.VSlist.Rows.Count - 2, 2]);
                this.VSlist[this.VSlist.Rows.Count - 1, 0x17] = Conversions.ToInteger(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtThueSuat.Value), 0, modGeneral.TypeOfValue.Nothing));
            }
            RowColEventArgs args = new RowColEventArgs(this.VSlist.Rows.Count - 1, 4);
            this.VSlist_CellButtonClick(this.VSlist, args);
            this.VSlist.Focus();
        }

        private void CmdBoGhiSo_Click(object sender, EventArgs e)
        {
            if (this.objNK.UnRegistered(this.cFrmKhoa))
            {
                this.CmdGhiSo.Visible = true;
                this.CmdBoGhiSo.Visible = false;
                this.CmdEdit.Enabled = true;
                this.CmdDel.Enabled = true;
            }
        }

        private void CmdChiPhi_Click(object sender, EventArgs e)
        {
            if (LVYModule.ReturnIfNull(this.cFrmKhoa, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() != "")
            {
                MyProject.Forms.Frm_ChiPhiMuaHang.cFrmKhoaPhieuNhap = this.cFrmKhoa;
                MyProject.Forms.Frm_ChiPhiMuaHang.ShowDialog();
                this.objNK.Load(this.cFrmKhoa);
            }
        }

        private void CmdCopy_Click(object sender, EventArgs e)
        {
            if ((this.VSlist.Rows.Count != 1) && (this.VSlist.Row > 0))
            {
                this.VSlist.AddItem("");
                int num2 = this.VSlist.Cols.Count - 1;
                for (int i = 0; i <= num2; i++)
                {
                    this.VSlist[this.VSlist.Rows.Count - 1, i] = RuntimeHelpers.GetObjectValue(this.VSlist[this.VSlist.Row, i]);
                    this.VSlist[this.VSlist.Rows.Count - 1, 0] = "";
                    this.VSlist[this.VSlist.Rows.Count - 1, 7] = "";
                }
            }
        }

        private void CmdDel_Click(object sender, EventArgs e)
        {
            if (LVYModule.ReturnIfNull(this.cFrmKhoa, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() != "")
            {
                if (this.objNK.TienPhiNhap != 0.0)
                {
                    LVYModule.ShowWarning(modGeneral.Tranlated("Th\x00f4ng tin n\x00e0y đ\x00e3 được xử l\x00fd. Bạn kh\x00f4ng thể chỉnh sửa hay x\x00f3a!", ""));
                }
                else if (LVYModule.ConfirmDelete("") && this.objNK.DeleteData(this.cFrmKhoa))
                {
                    this.EmptyData();
                }
            }
        }

        private void CmdDelRow_Click(object sender, EventArgs e)
        {
            if ((this.VSlist.Rows.Count != 1) && (this.VSlist.Row > 0))
            {
                this.VSlist.RemoveItem(this.VSlist.Row);
            }
        }

        private void CmdEdit_Click(object sender, EventArgs e)
        {
            if (LVYModule.CheckDateLock(LVYModule.Date2Char(this.TxtNgayChungTu.Text)) && (LVYModule.ReturnIfNull(this.cFrmKhoa, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() != ""))
            {
                if (this.objNK.TienPhiNhap != 0.0)
                {
                    LVYModule.ShowWarning(modGeneral.Tranlated("Th\x00f4ng tin n\x00e0y đ\x00e3 được xử l\x00fd. Bạn kh\x00f4ng thể chỉnh sửa hay x\x00f3a!", ""));
                }
                else
                {
                    this.cFrmKhoaOld = this.cFrmKhoa;
                    this.cFrmTask = "U";
                    this.EnabledControl = true;
                }
            }
        }

        private void CmdExit_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        private void CmdFind_Click(object sender, EventArgs e)
        {
            MyProject.Forms.Frm_NhapKhauList.Dispose();
            MyProject.Forms.Frm_NhapKhauList.ShowDialog();
        }

        private void CmdGhiSo_Click(object sender, EventArgs e)
        {
            MyProject.Forms.Frm_DinhKhoanNhapKhau.cFrmKhoa = this.cFrmKhoa;
            MyProject.Forms.Frm_DinhKhoanNhapKhau.ShowDialog();
            if (MyProject.Forms.Frm_DinhKhoanNhapKhau.GhiSo)
            {
                this.CmdGhiSo.Visible = false;
                this.CmdBoGhiSo.Visible = true;
                this.CmdEdit.Enabled = false;
                this.CmdDel.Enabled = false;
            }
            else
            {
                this.CmdGhiSo.Visible = true;
                this.CmdBoGhiSo.Visible = false;
                this.CmdEdit.Enabled = this.mAllowEdit;
                this.CmdDel.Enabled = this.mAllowDel;
            }
        }

        private void CmdHelp_Click(object sender, EventArgs e)
        {
        }

        private void CmdPrint_Click(object sender, EventArgs e)
        {
            ReportModule.PrintNhapKhau(this.cFrmKhoa);
        }

        private void CmdSave_Click(object sender, EventArgs e)
        {
            if (this.CheckIvalid())
            {
                if (!this.SaveDetails())
                {
                    this.objNK.ClearTemp(this.cFrmKhoa);
                }
                else if (Conversions.ToBoolean(Microsoft.VisualBasic.CompilerServices.Operators.NotObject(this.UpdateData())))
                {
                    this.objNK.ClearTemp(this.cFrmKhoa);
                }
                else
                {
                    this.objNK.ClearTemp(this.cFrmKhoa);
                    this.EnabledControl = false;
                }
            }
        }

        private void CmdTimDonHang_Click(object sender, EventArgs e)
        {
            MyProject.Forms.Frm_DonDatHangMuaList.Dispose();
            MyProject.Forms.Frm_DonDatHangMuaList.objFrmCall = this;
            MyProject.Forms.Frm_DonDatHangMuaList.strConditions = " AND DH.TinhTrang = 'CK'";
            MyProject.Forms.Frm_DonDatHangMuaList.ShowDialog();
            MyProject.Forms.Frm_DonDatHangMuaList.Dispose();
        }

        private void CmdUnsave_Click(object sender, EventArgs e)
        {
            if (this.cFrmKhoaOld.Trim() != "")
            {
                this.cFrmKhoa = this.cFrmKhoaOld;
                this.ShowData(this.cFrmKhoa);
            }
            else
            {
                this.EmptyData();
            }
            if (this.cFrmTask == "I")
            {
                this.objSoCT.UndoVoucher(LVYModule.sLeft(LVYModule.Date2Char(this.TxtNgayChungTu.Text), 6));
            }
            this.cFrmTask = "";
            this.EnabledControl = false;
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        public void EmptyData()
        {
            this.objNK.SetBlank();
            this.TxtSoChungTu.Text = "";
            this.TxtNgayChungTu.Text = Strings.Format(DateAndTime.Today, "dd/MM/yyyy");
            this.CboLoaiTien.SelectedValue = "";
            this.txtTyGia.Value = 0;
            this.TxtDienGiai.Text = "";
            this.TxtSoSeri.Text = "";
            this.TxtSoHoaDon.Text = "";
            this.AdvNhaCungCap.Value = "";
            this.AdvTaiKhoanCo.Value = "";
            this.AdvTaiKhoanNoThueGTGT.Value = "";
            this.AdvTaiKhoanCoThueGTGT.Value = "";
            this.AdvTKThueNhapKhau.Value = "";
            this.TxtSoHoaDonThueNK.Text = "";
            this.TxtChiPhiPhanBo.Value = 0;
            this.TxtChiPhiPhanBo.Value = 0;
            this.VSlist.Select(0, 0);
            this.VSlist.Rows.Count = 2;
            this.AdvTKThanhToan.Value = "";
            this.AdvTKThue.Value = "";
            this.AdvNhaCungCapPhiNK.Value = "";
            this.CboLoaiTienCP.SelectedValue = "";
            this.TxtTyGiaCP.Value = 0;
            this.CboPhanBoCP.SelectedValue = "TG";
            this.CboLoaiHoaDonCP.SelectedValue = "";
            this.TxtSoHoaDonCP.Text = "";
            this.TxtSoSeriCP.Text = "";
            this.TxtThueSuatCP.Value = 0;
            this.TxtTienPhiCPNT.Value = 0;
            this.TxtTienPhiCP.Value = 0;
            this.TxtTienThuePhiNT.Value = 0;
            this.TxtTienThuePhi.Value = 0;
            this.TxtDienGiaiPhiNK.Text = "";
            this.CboKhaiThue.SelectedValue = "";
        }

        public void FormatNumber()
        {
            LVYModule.advFormatNumber(this.txtTyGia, this.cFrmFormat);
            LVYModule.advFormatNumber(this.TxtTongTienHangNT, this.cFrmFormat);
            LVYModule.advFormatNumber(this.TxtTongTienHang, modGeneral.H_FORMATNUMBER);
            LVYModule.advFormatNumber(this.TxtChiPhiPhanBo, this.cFrmFormat);
            LVYModule.advFormatNumber(this.TxtTongTienThueNhapKhauNT, this.cFrmFormat);
            LVYModule.advFormatNumber(this.TxtTongTienThueNhapKhau, modGeneral.H_FORMATNUMBER);
            LVYModule.advFormatNumber(this.TxtTongTienThueNT, this.cFrmFormat);
            LVYModule.advFormatNumber(this.TxtTongTienThue, modGeneral.H_FORMATNUMBER);
            LVYModule.advFormatNumber(this.TxtTongThanhToanNT, this.cFrmFormat);
            LVYModule.advFormatNumber(this.TxtTongThanhToan, modGeneral.H_FORMATNUMBER);
            LVYModule.advFormatNumber(this.TxtTongTienPhiNT, this.cFrmFormat);
            LVYModule.advFormatNumber(this.TxtTongTienPhi, modGeneral.H_FORMATNUMBER);
            LVYModule.advFormatNumber(this.TxtTongTienPhiNKNT, this.cFrmFormat);
            LVYModule.advFormatNumber(this.TxtTongTienPhiNK, modGeneral.H_FORMATNUMBER);
            LVYModule.advFormatNumber(this.TxtTongThuePhiNKNT, this.cFrmFormat);
            LVYModule.advFormatNumber(this.TxtTongThuePhiNK, modGeneral.H_FORMATNUMBER);
            LVYModule.advFormatNumber(this.TxtTienPhiCPNT, this.cFrmFormat);
            LVYModule.advFormatNumber(this.TxtTienPhiCP, modGeneral.H_FORMATNUMBER);
            LVYModule.advFormatNumber(this.TxtTienThuePhiNT, this.cFrmFormat);
            LVYModule.advFormatNumber(this.TxtTienThuePhi, modGeneral.H_FORMATNUMBER);
            LVYModule.advFormatNumber(this.TxtCongPhiNT, this.cFrmFormat);
            LVYModule.advFormatNumber(this.TxtCongPhi, modGeneral.H_FORMATNUMBER);
            LVYModule.advFormatNumber(this.TxtTongCong, modGeneral.H_FORMATNUMBER);
            this.VSlist.Cols[14].Format = this.cFrmFormat;
            this.VSlist.Cols[15].Format = this.cFrmFormat;
            this.VSlist.Cols[0x10].Format = modGeneral.H_FORMATNUMBER;
            this.VSlist.Cols[0x11].Format = this.cFrmFormat;
            this.VSlist.Cols[0x12].Format = modGeneral.H_FORMATNUMBER;
            this.VSlist.Cols[0x13].Format = this.cFrmFormat;
            this.VSlist.Cols[20].Format = modGeneral.H_FORMATNUMBER;
            this.VSlist.Cols[0x15].Format = this.cFrmFormat;
            this.VSlist.Cols[0x16].Format = modGeneral.H_FORMATNUMBER;
            this.VSlist.Cols[0x17].Format = modGeneral.H_FORMATNUMBER;
            this.VSlist.Cols[0x18].Format = modGeneral.H_FORMATNUMBER;
        }

        private void Frm_NhapKhau_KeyDown(object sender, KeyEventArgs e)
        {
            Keys keyCode = e.KeyCode;
            if (keyCode != Keys.ControlKey)
            {
                if (keyCode == Keys.Escape)
                {
                    if (this.CmdExit.Enabled)
                    {
                        this.CmdExit_Click(RuntimeHelpers.GetObjectValue(sender), e);
                    }
                }
                else if (keyCode == Keys.F2)
                {
                    if (this.CmdEdit.Enabled)
                    {
                        this.CmdEdit_Click(RuntimeHelpers.GetObjectValue(sender), e);
                    }
                }
                else if (keyCode == Keys.F3)
                {
                    this.CmdFind_Click(RuntimeHelpers.GetObjectValue(sender), e);
                }
                else if (keyCode == Keys.F5)
                {
                    this.C1DockingTab1.SelectedIndex = 0;
                }
                else if (keyCode == Keys.F6)
                {
                    this.C1DockingTab2.SelectedIndex = 1;
                }
                else if (keyCode == Keys.F8)
                {
                    if (this.CmdAdd.Enabled)
                    {
                        this.CmdAdd_Click(RuntimeHelpers.GetObjectValue(sender), e);
                    }
                }
                else if (keyCode == Keys.F9)
                {
                    if (this.CmdDel.Enabled)
                    {
                        this.CmdDel_Click(RuntimeHelpers.GetObjectValue(sender), e);
                    }
                }
                else if (keyCode == Keys.F10)
                {
                    if (this.CmdSave.Enabled)
                    {
                        this.CmdSave_Click(RuntimeHelpers.GetObjectValue(sender), e);
                    }
                }
                else if (keyCode == Keys.F11)
                {
                    if (this.CmdUnsave.Enabled)
                    {
                        this.CmdUnsave_Click(RuntimeHelpers.GetObjectValue(sender), e);
                    }
                }
                else if ((keyCode == Keys.F12) && this.CmdPrint.Enabled)
                {
                    this.CmdPrint_Click(RuntimeHelpers.GetObjectValue(sender), e);
                }
            }
        }

        private void Frm_NhapKhau_Load(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            LVYModule.GetUserRight(ref this.mAllowView, ref this.mAllowDel, ref this.mAllowEdit, ref this.mAllowAdd, Conversions.ToString(this.Tag), modGeneral.H_USERNAME);
            if (!this.mAllowView)
            {
                this.Cursor = Cursors.Default;
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn kh\x00f4ng c\x00f3 quyền xem, li\x00ean hệ với người quản trị để biết th\x00eam chi tiết.", ""));
                this.Dispose();
            }
            else
            {
                this.EnabledControl = false;
                this.cFrmFormat = modGeneral.H_FORMATNUMBER;
                this.IsLoaded = false;
                this.InitCombo();
                this.IsLoaded = true;
                C1.Win.C1FlexGrid.C1FlexGrid vSlist = this.VSlist;
                vSlist.Cols[1].DataMap = LVYModule.MapDataDanhMuc(modGeneral.ListDanhMuc.KhoHang);
                vSlist.Cols[6].Visible = modGeneral.H_THEODOISOLOHANG;
                vSlist.Cols[7].Visible = modGeneral.H_THEODOISERI;
                vSlist.Cols[9].Visible = modGeneral.H_THEODOIHANDUNG;
                vSlist.Cols[9].EditMask = "##/##/####";
                vSlist.Cols[13].Editor = this.TxtSoLuong;
                vSlist.Cols[0x11].Visible = false;
                vSlist.Cols[0x12].Visible = false;
                vSlist = null;
                if (LVYModule.ReturnIfNull(this.cFrmKhoa, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() != "")
                {
                    this.ShowData(this.cFrmKhoa);
                }
                this.MergCell();
                this.TxtChiPhiPhanBo.ReadOnly = true;
                this.CboPhanBo.Enabled = false;
                this.Cursor = Cursors.Default;
            }
        }

        public void InitCombo()
        {
            BuildComboModule.BuildCombo(this.CboLoaiTien, modGeneral.ListDanhMuc.LoaiTien, false, "", "");
            BuildComboModule.BuildCombo(this.CboLoaiTienCP, modGeneral.ListDanhMuc.LoaiTien, false, "", "");
            BuildComboModule.BuildCombo(this.CboLoaiHoaDonCP, modGeneral.ListDanhMuc.HangMucBaoCaoThue, false, " LoaiPhatSinh = 'MV'", "");
            BuildComboModule.BuildCombo(this.CboKhaiThue, modGeneral.ListDanhMuc.HangMucBaoCaoThue, false, " LoaiPhatSinh = 'MV' ", "");
            this.CboPhanBo.DataSource = modGeneral.H_PPPB;
            this.CboPhanBo.ValueMember = "Ma";
            this.CboPhanBo.DisplayMember = "Ten";
            this.CboPhanBoCP.DataSource = modGeneral.H_PPPB;
            this.CboPhanBoCP.ValueMember = "Ma";
            this.CboPhanBoCP.DisplayMember = "Ten";
        }

        public void InitDefault()
        {
            this.AdvTaiKhoanCo.Value = modGeneral.H_DEFAULT.Item("H_NKH_TKCHU").GiaTri.ToString().Trim();
            this.AdvTaiKhoanNoThueGTGT.Value = modGeneral.H_DEFAULT.Item("H_NKH_TKNOTHUE").GiaTri.ToString().Trim();
            this.AdvTaiKhoanCoThueGTGT.Value = modGeneral.H_DEFAULT.Item("H_NKH_TKCOTHUE").GiaTri.ToString().Trim();
            this.AdvTKThueNhapKhau.Value = modGeneral.H_DEFAULT.Item("H_NKH_TKTHUENK").GiaTri.ToString().Trim();
            this.AdvTKThanhToan.Value = modGeneral.H_DEFAULT.Item("H_NKH_TKCHU").GiaTri.ToString().Trim();
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(Frm_NhapKhau));
            this.TxtTongTienThueNT = new C1NumericEdit();
            this.TxtTongTienHangNT = new C1NumericEdit();
            this.TxtTongTienThueNhapKhauNT = new C1NumericEdit();
            this.TxtTongTienThue = new C1NumericEdit();
            this.TxtTongTienHang = new C1NumericEdit();
            this.TxtTongTienThueNhapKhau = new C1NumericEdit();
            this.Label22 = new Label();
            this.Label21 = new Label();
            this.TxtTongThanhToan = new C1NumericEdit();
            this.TxtTongThanhToanNT = new C1NumericEdit();
            this.VSlist = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.Panel5 = new Panel();
            this.TxtTongCong = new C1NumericEdit();
            this.Label68 = new Label();
            this.Label67 = new Label();
            this.TxtCongPhiNT = new C1NumericEdit();
            this.TxtCongPhi = new C1NumericEdit();
            this.Label23 = new Label();
            this.TxtTongThuePhiNKNT = new C1NumericEdit();
            this.TxtTongThuePhiNK = new C1NumericEdit();
            this.Label65 = new Label();
            this.TxtTongTienPhiNKNT = new C1NumericEdit();
            this.TxtTongTienPhiNK = new C1NumericEdit();
            this.Label64 = new Label();
            this.TxtTongTienPhiNT = new C1NumericEdit();
            this.TxtTongTienPhi = new C1NumericEdit();
            this.Label19 = new Label();
            this.Label5 = new Label();
            this.ToolStripSeparator3 = new ToolStripSeparator();
            this.ToolStripButton1 = new ToolStripSeparator();
            this.ToolStripSeparator2 = new ToolStripSeparator();
            this.ToolStripSeparator1 = new ToolStripSeparator();
            this.CmdTimDonHang = new Button();
            this.Label4 = new Label();
            this.TxtNgayDathang = new DateTimePicker();
            this.Label6 = new Label();
            this.Label16 = new Label();
            this.Label46 = new Label();
            this.TxtSoHopDong = new TextBox();
            this.TxtHanThanhToan = new C1NumericEdit();
            this.Label24 = new Label();
            this.TxtNgayToiHanThanhToan = new DateTimePicker();
            this.TxtHanNopThue = new C1NumericEdit();
            this.Label44 = new Label();
            this.TxtNgayNopThue = new DateTimePicker();
            this.Label58 = new Label();
            this.TxtNgayHoaDonNK = new DateTimePicker();
            this.Label43 = new Label();
            this.TxtSoHoaDonThueNK = new TextBox();
            this.Label62 = new Label();
            this.Label20 = new Label();
            this.Label18 = new Label();
            this.Label2 = new Label();
            this.TxtDienGiai = new TextBox();
            this.Label9 = new Label();
            this.GroupBox1 = new GroupBox();
            this.CboKhaiThue = new ComboBox();
            this.TxtThueSuat = new C1NumericEdit();
            this.Label69 = new Label();
            this.Label15 = new Label();
            this.Label14 = new Label();
            this.TxtSoSeri = new TextBox();
            this.Label8 = new Label();
            this.TxtNgayHoaDon = new DateTimePicker();
            this.Label12 = new Label();
            this.TxtSoHoaDon = new TextBox();
            this.Label17 = new Label();
            this.TxtSoToKhai = new TextBox();
            this.TxtSoDonHang = new TextBox();
            this.CboLoaiTien = new ComboBox();
            this.txtTyGia = new C1NumericEdit();
            this.Label11 = new Label();
            this.Label10 = new Label();
            this.Label13 = new Label();
            this.TxtNgayChungTu = new DateTimePicker();
            this.Label1 = new Label();
            this.TxtSoChungTu = new TextBox();
            this.TxtDienGiaiPhiNK = new TextBox();
            this.Label66 = new Label();
            this.CboLoaiTienCP = new ComboBox();
            this.TxtTyGiaCP = new C1NumericEdit();
            this.Label61 = new Label();
            this.Label63 = new Label();
            this.TxtTienThuePhi = new C1NumericEdit();
            this.Label59 = new Label();
            this.TxtTienThuePhiNT = new C1NumericEdit();
            this.Label60 = new Label();
            this.Label55 = new Label();
            this.TxtTienPhiCP = new C1NumericEdit();
            this.Label54 = new Label();
            this.TxtThueSuatCP = new C1NumericEdit();
            this.Label47 = new Label();
            this.Label48 = new Label();
            this.TxtSoSeriCP = new TextBox();
            this.Label49 = new Label();
            this.TxtNgayHoaDonCP = new DateTimePicker();
            this.Label50 = new Label();
            this.TxtSoHoaDonCP = new TextBox();
            this.CboLoaiHoaDonCP = new ComboBox();
            this.Label51 = new Label();
            this.CboPhanBoCP = new ComboBox();
            this.Label52 = new Label();
            this.TxtTienPhiCPNT = new C1NumericEdit();
            this.Label53 = new Label();
            this.Label56 = new Label();
            this.Label57 = new Label();
            this.ToolStrip1 = new ToolStrip();
            this.CmdAdd = new ToolStripButton();
            this.CmdEdit = new ToolStripButton();
            this.CmdSave = new ToolStripButton();
            this.CmdUnsave = new ToolStripButton();
            this.CmdFind = new ToolStripButton();
            this.CmdPrint = new ToolStripButton();
            this.CmdDel = new ToolStripButton();
            this.CmdExit = new ToolStripButton();
            this.CmdChiPhi = new ToolStripButton();
            this.CmdGhiSo = new ToolStripButton();
            this.CmdHelp = new ToolStripButton();
            this.CmdBoGhiSo = new ToolStripButton();
            this.ToolStripSeparator5 = new ToolStripSeparator();
            this.Panel4 = new Panel();
            this.TxtSoLuong = new C1NumericEdit();
            this.GroupBox2 = new GroupBox();
            this.Label45 = new Label();
            this.Label42 = new Label();
            this.CboPhanBo = new ComboBox();
            this.TxtChiPhiPhanBo = new C1NumericEdit();
            this.CKPhanBoPhi = new CheckBox();
            this.CmdCopy = new Button();
            this.CmdDelRow = new Button();
            this.CmdAddRow = new Button();
            this.Label25 = new Label();
            this.DateTimePicker2 = new DateTimePicker();
            this.Label26 = new Label();
            this.TextBox2 = new TextBox();
            this.Label27 = new Label();
            this.Label28 = new Label();
            this.Label29 = new Label();
            this.Label30 = new Label();
            this.TextBox3 = new TextBox();
            this.Label31 = new Label();
            this.DateTimePicker3 = new DateTimePicker();
            this.Label32 = new Label();
            this.TextBox4 = new TextBox();
            this.ComboBox1 = new ComboBox();
            this.Label33 = new Label();
            this.Label34 = new Label();
            this.DateTimePicker4 = new DateTimePicker();
            this.Label35 = new Label();
            this.TextBox5 = new TextBox();
            this.TextBox6 = new TextBox();
            this.Label36 = new Label();
            this.ComboBox2 = new ComboBox();
            this.Label37 = new Label();
            this.Label38 = new Label();
            this.Label39 = new Label();
            this.Label40 = new Label();
            this.DateTimePicker5 = new DateTimePicker();
            this.Label41 = new Label();
            this.TextBox7 = new TextBox();
            this.C1DockingTab2 = new C1DockingTab();
            this.C1DockingTabPage1 = new C1DockingTabPage();
            this.C1DockingTabPage2 = new C1DockingTabPage();
            this.C1DockingTab1 = new C1DockingTab();
            this.C1DockingTabPage3 = new C1DockingTabPage();
            this.AdvTaiKhoanCoThueGTGT = new ADVAccount();
            this.AdvNhaCungCap = new ADVObjects();
            this.AdvTaiKhoanNoThueGTGT = new ADVAccount();
            this.AdvTKThueNhapKhau = new ADVAccount();
            this.AdvTaiKhoanCo = new ADVAccount();
            this.AdvNhaCungCapPhiNK = new ADVObjects();
            this.AdvTKThanhToan = new ADVAccount();
            this.AdvTKThue = new ADVAccount();
            this.AdvAccount2 = new ADVAccount();
            this.AdvObjects2 = new ADVObjects();
            this.AdvAccount3 = new ADVAccount();
            ((ISupportInitialize) this.TxtTongTienThueNT).BeginInit();
            ((ISupportInitialize) this.TxtTongTienHangNT).BeginInit();
            ((ISupportInitialize) this.TxtTongTienThueNhapKhauNT).BeginInit();
            ((ISupportInitialize) this.TxtTongTienThue).BeginInit();
            ((ISupportInitialize) this.TxtTongTienHang).BeginInit();
            ((ISupportInitialize) this.TxtTongTienThueNhapKhau).BeginInit();
            ((ISupportInitialize) this.TxtTongThanhToan).BeginInit();
            ((ISupportInitialize) this.TxtTongThanhToanNT).BeginInit();
            this.VSlist.BeginInit();
            this.Panel5.SuspendLayout();
            ((ISupportInitialize) this.TxtTongCong).BeginInit();
            ((ISupportInitialize) this.TxtCongPhiNT).BeginInit();
            ((ISupportInitialize) this.TxtCongPhi).BeginInit();
            ((ISupportInitialize) this.TxtTongThuePhiNKNT).BeginInit();
            ((ISupportInitialize) this.TxtTongThuePhiNK).BeginInit();
            ((ISupportInitialize) this.TxtTongTienPhiNKNT).BeginInit();
            ((ISupportInitialize) this.TxtTongTienPhiNK).BeginInit();
            ((ISupportInitialize) this.TxtTongTienPhiNT).BeginInit();
            ((ISupportInitialize) this.TxtTongTienPhi).BeginInit();
            ((ISupportInitialize) this.TxtHanThanhToan).BeginInit();
            ((ISupportInitialize) this.TxtHanNopThue).BeginInit();
            this.GroupBox1.SuspendLayout();
            ((ISupportInitialize) this.TxtThueSuat).BeginInit();
            ((ISupportInitialize) this.txtTyGia).BeginInit();
            ((ISupportInitialize) this.TxtTyGiaCP).BeginInit();
            ((ISupportInitialize) this.TxtTienThuePhi).BeginInit();
            ((ISupportInitialize) this.TxtTienThuePhiNT).BeginInit();
            ((ISupportInitialize) this.TxtTienPhiCP).BeginInit();
            ((ISupportInitialize) this.TxtThueSuatCP).BeginInit();
            ((ISupportInitialize) this.TxtTienPhiCPNT).BeginInit();
            this.ToolStrip1.SuspendLayout();
            this.Panel4.SuspendLayout();
            ((ISupportInitialize) this.TxtSoLuong).BeginInit();
            this.GroupBox2.SuspendLayout();
            ((ISupportInitialize) this.TxtChiPhiPhanBo).BeginInit();
            ((ISupportInitialize) this.C1DockingTab2).BeginInit();
            this.C1DockingTab2.SuspendLayout();
            this.C1DockingTabPage1.SuspendLayout();
            this.C1DockingTabPage2.SuspendLayout();
            ((ISupportInitialize) this.C1DockingTab1).BeginInit();
            this.C1DockingTab1.SuspendLayout();
            this.C1DockingTabPage3.SuspendLayout();
            this.SuspendLayout();
            this.TxtTongTienThueNT.BorderStyle = BorderStyle.FixedSingle;
            this.TxtTongTienThueNT.FormatType = FormatTypeEnum.StandardNumber;
            Point point = new Point(0x1a5, 0x9b);
            this.TxtTongTienThueNT.Location = point;
            this.TxtTongTienThueNT.Name = "TxtTongTienThueNT";
            Padding padding = new Padding(1);
            this.TxtTongTienThueNT.Padding = padding;
            this.TxtTongTienThueNT.ReadOnly = true;
            Size size = new Size(0x69, 20);
            this.TxtTongTienThueNT.Size = size;
            this.TxtTongTienThueNT.TabIndex = 0x86;
            this.TxtTongTienThueNT.Tag = null;
            this.TxtTongTienThueNT.TextAlign = HorizontalAlignment.Right;
            this.TxtTongTienThueNT.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtTongTienThueNT.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTongTienThueNT.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTongTienHangNT.BorderStyle = BorderStyle.FixedSingle;
            this.TxtTongTienHangNT.FormatType = FormatTypeEnum.StandardNumber;
            point = new Point(100, 3);
            this.TxtTongTienHangNT.Location = point;
            this.TxtTongTienHangNT.Name = "TxtTongTienHangNT";
            padding = new Padding(1);
            this.TxtTongTienHangNT.Padding = padding;
            this.TxtTongTienHangNT.ReadOnly = true;
            size = new Size(0x69, 20);
            this.TxtTongTienHangNT.Size = size;
            this.TxtTongTienHangNT.TabIndex = 0;
            this.TxtTongTienHangNT.Tag = null;
            this.TxtTongTienHangNT.TextAlign = HorizontalAlignment.Right;
            this.TxtTongTienHangNT.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtTongTienHangNT.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTongTienHangNT.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTongTienThueNhapKhauNT.BorderStyle = BorderStyle.FixedSingle;
            this.TxtTongTienThueNhapKhauNT.FormatType = FormatTypeEnum.StandardNumber;
            point = new Point(0x1a5, 0x85);
            this.TxtTongTienThueNhapKhauNT.Location = point;
            this.TxtTongTienThueNhapKhauNT.Name = "TxtTongTienThueNhapKhauNT";
            padding = new Padding(1);
            this.TxtTongTienThueNhapKhauNT.Padding = padding;
            this.TxtTongTienThueNhapKhauNT.ReadOnly = true;
            size = new Size(0x69, 20);
            this.TxtTongTienThueNhapKhauNT.Size = size;
            this.TxtTongTienThueNhapKhauNT.TabIndex = 0x84;
            this.TxtTongTienThueNhapKhauNT.Tag = null;
            this.TxtTongTienThueNhapKhauNT.TextAlign = HorizontalAlignment.Right;
            this.TxtTongTienThueNhapKhauNT.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtTongTienThueNhapKhauNT.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTongTienThueNhapKhauNT.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTongTienThue.BackColor = Color.FromArgb(0xff, 0xff, 0xc0);
            this.TxtTongTienThue.BorderStyle = BorderStyle.FixedSingle;
            this.TxtTongTienThue.FormatType = FormatTypeEnum.StandardNumber;
            point = new Point(0x139, 0x4f);
            this.TxtTongTienThue.Location = point;
            this.TxtTongTienThue.Name = "TxtTongTienThue";
            padding = new Padding(1);
            this.TxtTongTienThue.Padding = padding;
            this.TxtTongTienThue.ReadOnly = true;
            size = new Size(0x69, 20);
            this.TxtTongTienThue.Size = size;
            this.TxtTongTienThue.TabIndex = 13;
            this.TxtTongTienThue.Tag = null;
            this.TxtTongTienThue.TextAlign = HorizontalAlignment.Right;
            this.TxtTongTienThue.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtTongTienThue.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTongTienHang.BorderStyle = BorderStyle.FixedSingle;
            this.TxtTongTienHang.FormatType = FormatTypeEnum.StandardNumber;
            point = new Point(0xd0, 3);
            this.TxtTongTienHang.Location = point;
            this.TxtTongTienHang.Name = "TxtTongTienHang";
            padding = new Padding(1);
            this.TxtTongTienHang.Padding = padding;
            this.TxtTongTienHang.ReadOnly = true;
            size = new Size(0x69, 20);
            this.TxtTongTienHang.Size = size;
            this.TxtTongTienHang.TabIndex = 1;
            this.TxtTongTienHang.Tag = null;
            this.TxtTongTienHang.TextAlign = HorizontalAlignment.Right;
            this.TxtTongTienHang.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtTongTienHang.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTongTienHang.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTongTienThueNhapKhau.BackColor = Color.FromArgb(0xff, 0xff, 0xc0);
            this.TxtTongTienThueNhapKhau.BorderStyle = BorderStyle.FixedSingle;
            this.TxtTongTienThueNhapKhau.FormatType = FormatTypeEnum.StandardNumber;
            point = new Point(100, 0x4f);
            this.TxtTongTienThueNhapKhau.Location = point;
            this.TxtTongTienThueNhapKhau.Name = "TxtTongTienThueNhapKhau";
            padding = new Padding(1);
            this.TxtTongTienThueNhapKhau.Padding = padding;
            this.TxtTongTienThueNhapKhau.ReadOnly = true;
            size = new Size(0x69, 20);
            this.TxtTongTienThueNhapKhau.Size = size;
            this.TxtTongTienThueNhapKhau.TabIndex = 12;
            this.TxtTongTienThueNhapKhau.Tag = null;
            this.TxtTongTienThueNhapKhau.TextAlign = HorizontalAlignment.Right;
            this.TxtTongTienThueNhapKhau.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtTongTienThueNhapKhau.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label22.AutoSize = true;
            this.Label22.BackColor = Color.Transparent;
            this.Label22.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
            point = new Point(0xd1, 0x53);
            this.Label22.Location = point;
            this.Label22.Name = "Label22";
            size = new Size(0x63, 13);
            this.Label22.Size = size;
            this.Label22.TabIndex = 0x75;
            this.Label22.Text = "Tiền thuế GTGT";
            this.Label21.AutoSize = true;
            this.Label21.BackColor = Color.Transparent;
            this.Label21.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
            point = new Point(0, 0x52);
            this.Label21.Location = point;
            this.Label21.Name = "Label21";
            size = new Size(100, 13);
            this.Label21.Size = size;
            this.Label21.TabIndex = 0x74;
            this.Label21.Text = "Thuế nhập khẩu";
            this.TxtTongThanhToan.BorderStyle = BorderStyle.FixedSingle;
            this.TxtTongThanhToan.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
            this.TxtTongThanhToan.FormatType = FormatTypeEnum.StandardNumber;
            point = new Point(0xd0, 0x2f);
            this.TxtTongThanhToan.Location = point;
            this.TxtTongThanhToan.Name = "TxtTongThanhToan";
            padding = new Padding(1);
            this.TxtTongThanhToan.Padding = padding;
            this.TxtTongThanhToan.ReadOnly = true;
            size = new Size(0x69, 20);
            this.TxtTongThanhToan.Size = size;
            this.TxtTongThanhToan.TabIndex = 5;
            this.TxtTongThanhToan.Tag = null;
            this.TxtTongThanhToan.TextAlign = HorizontalAlignment.Right;
            this.TxtTongThanhToan.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtTongThanhToan.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTongThanhToan.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTongThanhToanNT.BorderStyle = BorderStyle.FixedSingle;
            this.TxtTongThanhToanNT.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
            this.TxtTongThanhToanNT.FormatType = FormatTypeEnum.StandardNumber;
            point = new Point(100, 0x2f);
            this.TxtTongThanhToanNT.Location = point;
            this.TxtTongThanhToanNT.Name = "TxtTongThanhToanNT";
            padding = new Padding(1);
            this.TxtTongThanhToanNT.Padding = padding;
            this.TxtTongThanhToanNT.ReadOnly = true;
            size = new Size(0x69, 20);
            this.TxtTongThanhToanNT.Size = size;
            this.TxtTongThanhToanNT.TabIndex = 4;
            this.TxtTongThanhToanNT.Tag = null;
            this.TxtTongThanhToanNT.TextAlign = HorizontalAlignment.Right;
            this.TxtTongThanhToanNT.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtTongThanhToanNT.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTongThanhToanNT.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.VSlist.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.Light3D;
            this.VSlist.ColumnInfo = manager.GetString("VSlist.ColumnInfo");
            this.VSlist.Dock = DockStyle.Fill;
            this.VSlist.ExtendLastCol = true;
            this.VSlist.FocusRect = FocusRectEnum.Solid;
            this.VSlist.KeyActionEnter = KeyActionEnum.MoveAcross;
            point = new Point(0, 0);
            this.VSlist.Location = point;
            padding = new Padding(0);
            this.VSlist.Margin = padding;
            this.VSlist.Name = "VSlist";
            this.VSlist.Rows.Count = 2;
            this.VSlist.Rows.DefaultSize = 0x11;
            this.VSlist.Rows.Fixed = 2;
            this.VSlist.Rows.MinSize = 20;
            size = new Size(0x3e0, 0x124);
            this.VSlist.Size = size;
            this.VSlist.StyleInfo = manager.GetString("VSlist.StyleInfo");
            this.VSlist.TabIndex = 0;
            this.VSlist.VisualStyle = C1.Win.C1FlexGrid.VisualStyle.Office2007Blue;
            this.Panel5.BackgroundImage = ACCOUNTING.My.Resources.Resources.background;
            this.Panel5.Controls.Add(this.TxtTongCong);
            this.Panel5.Controls.Add(this.Label68);
            this.Panel5.Controls.Add(this.Label67);
            this.Panel5.Controls.Add(this.TxtCongPhiNT);
            this.Panel5.Controls.Add(this.TxtCongPhi);
            this.Panel5.Controls.Add(this.Label23);
            this.Panel5.Controls.Add(this.TxtTongThuePhiNKNT);
            this.Panel5.Controls.Add(this.TxtTongThuePhiNK);
            this.Panel5.Controls.Add(this.Label65);
            this.Panel5.Controls.Add(this.TxtTongTienPhiNKNT);
            this.Panel5.Controls.Add(this.TxtTongThanhToanNT);
            this.Panel5.Controls.Add(this.TxtTongThanhToan);
            this.Panel5.Controls.Add(this.TxtTongTienPhiNK);
            this.Panel5.Controls.Add(this.Label64);
            this.Panel5.Controls.Add(this.TxtTongTienPhiNT);
            this.Panel5.Controls.Add(this.TxtTongTienPhi);
            this.Panel5.Controls.Add(this.Label19);
            this.Panel5.Controls.Add(this.TxtTongTienThueNT);
            this.Panel5.Controls.Add(this.TxtTongTienHangNT);
            this.Panel5.Controls.Add(this.TxtTongTienThueNhapKhauNT);
            this.Panel5.Controls.Add(this.TxtTongTienThue);
            this.Panel5.Controls.Add(this.TxtTongTienHang);
            this.Panel5.Controls.Add(this.TxtTongTienThueNhapKhau);
            this.Panel5.Controls.Add(this.Label22);
            this.Panel5.Controls.Add(this.Label5);
            this.Panel5.Controls.Add(this.Label21);
            this.Panel5.Dock = DockStyle.Right;
            point = new Point(0x165, 0);
            this.Panel5.Location = point;
            this.Panel5.Name = "Panel5";
            size = new Size(0x27d, 0x69);
            this.Panel5.Size = size;
            this.Panel5.TabIndex = 0;
            this.TxtTongCong.BackColor = Color.FromArgb(0xff, 0xff, 0xc0);
            this.TxtTongCong.BorderStyle = BorderStyle.FixedSingle;
            this.TxtTongCong.FormatType = FormatTypeEnum.StandardNumber;
            point = new Point(0x20f, 0x4f);
            this.TxtTongCong.Location = point;
            this.TxtTongCong.Name = "TxtTongCong";
            padding = new Padding(1);
            this.TxtTongCong.Padding = padding;
            this.TxtTongCong.ReadOnly = true;
            size = new Size(0x69, 20);
            this.TxtTongCong.Size = size;
            this.TxtTongCong.TabIndex = 14;
            this.TxtTongCong.Tag = null;
            this.TxtTongCong.TextAlign = HorizontalAlignment.Right;
            this.TxtTongCong.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtTongCong.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label68.AutoSize = true;
            this.Label68.BackColor = Color.Transparent;
            this.Label68.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
            point = new Point(0x1b0, 0x52);
            this.Label68.Location = point;
            this.Label68.Name = "Label68";
            size = new Size(0x48, 13);
            this.Label68.Size = size;
            this.Label68.TabIndex = 0x97;
            this.Label68.Text = "Tổng gi\x00e1 trị";
            this.Label67.AutoSize = true;
            this.Label67.BackColor = Color.Transparent;
            this.Label67.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
            point = new Point(0x13c, 50);
            this.Label67.Location = point;
            this.Label67.Name = "Label67";
            size = new Size(0x3b, 13);
            this.Label67.Size = size;
            this.Label67.TabIndex = 150;
            this.Label67.Text = "Cộng ph\x00ed";
            this.TxtCongPhiNT.BorderStyle = BorderStyle.FixedSingle;
            this.TxtCongPhiNT.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
            this.TxtCongPhiNT.FormatType = FormatTypeEnum.StandardNumber;
            point = new Point(0x1a3, 0x2f);
            this.TxtCongPhiNT.Location = point;
            this.TxtCongPhiNT.Name = "TxtCongPhiNT";
            padding = new Padding(1);
            this.TxtCongPhiNT.Padding = padding;
            this.TxtCongPhiNT.ReadOnly = true;
            size = new Size(0x69, 20);
            this.TxtCongPhiNT.Size = size;
            this.TxtCongPhiNT.TabIndex = 10;
            this.TxtCongPhiNT.Tag = null;
            this.TxtCongPhiNT.TextAlign = HorizontalAlignment.Right;
            this.TxtCongPhiNT.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtCongPhiNT.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtCongPhiNT.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtCongPhi.BorderStyle = BorderStyle.FixedSingle;
            this.TxtCongPhi.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
            this.TxtCongPhi.FormatType = FormatTypeEnum.StandardNumber;
            point = new Point(0x20f, 0x2f);
            this.TxtCongPhi.Location = point;
            this.TxtCongPhi.Name = "TxtCongPhi";
            padding = new Padding(1);
            this.TxtCongPhi.Padding = padding;
            this.TxtCongPhi.ReadOnly = true;
            size = new Size(0x69, 20);
            this.TxtCongPhi.Size = size;
            this.TxtCongPhi.TabIndex = 11;
            this.TxtCongPhi.Tag = null;
            this.TxtCongPhi.TextAlign = HorizontalAlignment.Right;
            this.TxtCongPhi.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtCongPhi.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtCongPhi.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label23.AutoSize = true;
            this.Label23.BackColor = Color.Transparent;
            this.Label23.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
            point = new Point(2, 0x33);
            this.Label23.Location = point;
            this.Label23.Name = "Label23";
            size = new Size(0x5d, 13);
            this.Label23.Size = size;
            this.Label23.TabIndex = 0x93;
            this.Label23.Text = "Cộng tiền h\x00e0ng";
            this.TxtTongThuePhiNKNT.BorderStyle = BorderStyle.FixedSingle;
            this.TxtTongThuePhiNKNT.FormatType = FormatTypeEnum.StandardNumber;
            point = new Point(0x1a3, 0x19);
            this.TxtTongThuePhiNKNT.Location = point;
            this.TxtTongThuePhiNKNT.Name = "TxtTongThuePhiNKNT";
            padding = new Padding(1);
            this.TxtTongThuePhiNKNT.Padding = padding;
            this.TxtTongThuePhiNKNT.ReadOnly = true;
            size = new Size(0x69, 20);
            this.TxtTongThuePhiNKNT.Size = size;
            this.TxtTongThuePhiNKNT.TabIndex = 8;
            this.TxtTongThuePhiNKNT.Tag = null;
            this.TxtTongThuePhiNKNT.TextAlign = HorizontalAlignment.Right;
            this.TxtTongThuePhiNKNT.Visible = false;
            this.TxtTongThuePhiNKNT.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtTongThuePhiNKNT.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTongThuePhiNKNT.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTongThuePhiNK.BorderStyle = BorderStyle.FixedSingle;
            this.TxtTongThuePhiNK.FormatType = FormatTypeEnum.StandardNumber;
            point = new Point(0x20f, 0x19);
            this.TxtTongThuePhiNK.Location = point;
            this.TxtTongThuePhiNK.Name = "TxtTongThuePhiNK";
            padding = new Padding(1);
            this.TxtTongThuePhiNK.Padding = padding;
            this.TxtTongThuePhiNK.ReadOnly = true;
            size = new Size(0x69, 20);
            this.TxtTongThuePhiNK.Size = size;
            this.TxtTongThuePhiNK.TabIndex = 9;
            this.TxtTongThuePhiNK.Tag = null;
            this.TxtTongThuePhiNK.TextAlign = HorizontalAlignment.Right;
            this.TxtTongThuePhiNK.Visible = false;
            this.TxtTongThuePhiNK.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtTongThuePhiNK.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTongThuePhiNK.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label65.AutoSize = true;
            this.Label65.BackColor = Color.Transparent;
            point = new Point(0x13a, 0x1c);
            this.Label65.Location = point;
            this.Label65.Name = "Label65";
            size = new Size(0x69, 13);
            this.Label65.Size = size;
            this.Label65.TabIndex = 0x90;
            this.Label65.Text = "Thuế ph\x00ed nhập khẩu";
            this.Label65.Visible = false;
            this.TxtTongTienPhiNKNT.BorderStyle = BorderStyle.FixedSingle;
            this.TxtTongTienPhiNKNT.FormatType = FormatTypeEnum.StandardNumber;
            point = new Point(0x1a3, 3);
            this.TxtTongTienPhiNKNT.Location = point;
            this.TxtTongTienPhiNKNT.Name = "TxtTongTienPhiNKNT";
            padding = new Padding(1);
            this.TxtTongTienPhiNKNT.Padding = padding;
            this.TxtTongTienPhiNKNT.ReadOnly = true;
            size = new Size(0x69, 20);
            this.TxtTongTienPhiNKNT.Size = size;
            this.TxtTongTienPhiNKNT.TabIndex = 6;
            this.TxtTongTienPhiNKNT.Tag = null;
            this.TxtTongTienPhiNKNT.TextAlign = HorizontalAlignment.Right;
            this.TxtTongTienPhiNKNT.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtTongTienPhiNKNT.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTongTienPhiNKNT.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTongTienPhiNK.BorderStyle = BorderStyle.FixedSingle;
            this.TxtTongTienPhiNK.FormatType = FormatTypeEnum.StandardNumber;
            point = new Point(0x20f, 3);
            this.TxtTongTienPhiNK.Location = point;
            this.TxtTongTienPhiNK.Name = "TxtTongTienPhiNK";
            padding = new Padding(1);
            this.TxtTongTienPhiNK.Padding = padding;
            this.TxtTongTienPhiNK.ReadOnly = true;
            size = new Size(0x69, 20);
            this.TxtTongTienPhiNK.Size = size;
            this.TxtTongTienPhiNK.TabIndex = 7;
            this.TxtTongTienPhiNK.Tag = null;
            this.TxtTongTienPhiNK.TextAlign = HorizontalAlignment.Right;
            this.TxtTongTienPhiNK.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtTongTienPhiNK.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTongTienPhiNK.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label64.AutoSize = true;
            this.Label64.BackColor = Color.Transparent;
            point = new Point(0x13a, 6);
            this.Label64.Location = point;
            this.Label64.Name = "Label64";
            size = new Size(0x4e, 13);
            this.Label64.Size = size;
            this.Label64.TabIndex = 0x8d;
            this.Label64.Text = "Ph\x00ed nhập khẩu";
            this.TxtTongTienPhiNT.BorderStyle = BorderStyle.FixedSingle;
            this.TxtTongTienPhiNT.FormatType = FormatTypeEnum.StandardNumber;
            point = new Point(100, 0x19);
            this.TxtTongTienPhiNT.Location = point;
            this.TxtTongTienPhiNT.Name = "TxtTongTienPhiNT";
            padding = new Padding(1);
            this.TxtTongTienPhiNT.Padding = padding;
            this.TxtTongTienPhiNT.ReadOnly = true;
            size = new Size(0x69, 20);
            this.TxtTongTienPhiNT.Size = size;
            this.TxtTongTienPhiNT.TabIndex = 2;
            this.TxtTongTienPhiNT.Tag = null;
            this.TxtTongTienPhiNT.TextAlign = HorizontalAlignment.Right;
            this.TxtTongTienPhiNT.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtTongTienPhiNT.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTongTienPhiNT.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTongTienPhi.BorderStyle = BorderStyle.FixedSingle;
            this.TxtTongTienPhi.FormatType = FormatTypeEnum.StandardNumber;
            point = new Point(0xd0, 0x19);
            this.TxtTongTienPhi.Location = point;
            this.TxtTongTienPhi.Name = "TxtTongTienPhi";
            padding = new Padding(1);
            this.TxtTongTienPhi.Padding = padding;
            this.TxtTongTienPhi.ReadOnly = true;
            size = new Size(0x69, 20);
            this.TxtTongTienPhi.Size = size;
            this.TxtTongTienPhi.TabIndex = 3;
            this.TxtTongTienPhi.Tag = null;
            this.TxtTongTienPhi.TextAlign = HorizontalAlignment.Right;
            this.TxtTongTienPhi.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtTongTienPhi.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTongTienPhi.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label19.AutoSize = true;
            this.Label19.BackColor = Color.Transparent;
            point = new Point(2, 0x1d);
            this.Label19.Location = point;
            this.Label19.Name = "Label19";
            size = new Size(0x2f, 13);
            this.Label19.Size = size;
            this.Label19.TabIndex = 0x8a;
            this.Label19.Text = "Tiền ph\x00ed";
            this.Label5.AutoSize = true;
            this.Label5.BackColor = Color.Transparent;
            point = new Point(2, 7);
            this.Label5.Location = point;
            this.Label5.Name = "Label5";
            size = new Size(0x37, 13);
            this.Label5.Size = size;
            this.Label5.TabIndex = 0x73;
            this.Label5.Text = "Tiền h\x00e0ng";
            this.ToolStripSeparator3.Name = "ToolStripSeparator3";
            size = new Size(6, 0x19);
            this.ToolStripSeparator3.Size = size;
            this.ToolStripButton1.Name = "ToolStripButton1";
            size = new Size(6, 0x19);
            this.ToolStripButton1.Size = size;
            this.ToolStripSeparator2.Name = "ToolStripSeparator2";
            size = new Size(6, 0x19);
            this.ToolStripSeparator2.Size = size;
            this.ToolStripSeparator1.Name = "ToolStripSeparator1";
            size = new Size(6, 0x19);
            this.ToolStripSeparator1.Size = size;
            this.CmdTimDonHang.BackgroundImage = ACCOUNTING.My.Resources.Resources.view;
            this.CmdTimDonHang.BackgroundImageLayout = ImageLayout.Stretch;
            point = new Point(0x111, 130);
            this.CmdTimDonHang.Location = point;
            this.CmdTimDonHang.Name = "CmdTimDonHang";
            size = new Size(0x16, 0x16);
            this.CmdTimDonHang.Size = size;
            this.CmdTimDonHang.TabIndex = 2;
            this.CmdTimDonHang.Text = "...";
            this.CmdTimDonHang.UseVisualStyleBackColor = true;
            this.CmdTimDonHang.Visible = false;
            this.Label4.AutoSize = true;
            this.Label4.BackColor = Color.Transparent;
            point = new Point(0x12e, 0x86);
            this.Label4.Location = point;
            this.Label4.Name = "Label4";
            size = new Size(0x20, 13);
            this.Label4.Size = size;
            this.Label4.TabIndex = 3;
            this.Label4.Text = "Ng\x00e0y";
            this.Label4.Visible = false;
            this.TxtNgayDathang.Enabled = false;
            this.TxtNgayDathang.Format = DateTimePickerFormat.Custom;
            point = new Point(0x183, 130);
            this.TxtNgayDathang.Location = point;
            this.TxtNgayDathang.Name = "TxtNgayDathang";
            size = new Size(0x74, 20);
            this.TxtNgayDathang.Size = size;
            this.TxtNgayDathang.TabIndex = 1;
            this.TxtNgayDathang.Visible = false;
            this.Label6.AutoSize = true;
            this.Label6.BackColor = Color.Transparent;
            point = new Point(0x54, 0x85);
            this.Label6.Location = point;
            this.Label6.Name = "Label6";
            size = new Size(0x44, 13);
            this.Label6.Size = size;
            this.Label6.TabIndex = 0;
            this.Label6.Text = "Đơn h\x00e0ng số";
            this.Label6.Visible = false;
            this.Label16.AutoEllipsis = true;
            this.Label16.AutoSize = true;
            this.Label16.BackColor = Color.Transparent;
            point = new Point(13, 0x70);
            this.Label16.Location = point;
            this.Label16.Name = "Label16";
            this.Label16.RightToLeft = RightToLeft.No;
            size = new Size(0x4b, 13);
            this.Label16.Size = size;
            this.Label16.TabIndex = 0x16;
            this.Label16.Text = "Nh\x00e0 cung cấp";
            this.Label16.TextAlign = ContentAlignment.TopRight;
            this.Label46.AutoSize = true;
            this.Label46.BackColor = Color.Transparent;
            point = new Point(0xe7, 0x86);
            this.Label46.Location = point;
            this.Label46.Name = "Label46";
            size = new Size(0x45, 13);
            this.Label46.Size = size;
            this.Label46.TabIndex = 0x1b;
            this.Label46.Text = "Số hợp đồng";
            point = new Point(0x13c, 130);
            this.TxtSoHopDong.Location = point;
            this.TxtSoHopDong.Name = "TxtSoHopDong";
            size = new Size(0x74, 20);
            this.TxtSoHopDong.Size = size;
            this.TxtSoHopDong.TabIndex = 13;
            this.TxtHanThanhToan.BorderStyle = BorderStyle.FixedSingle;
            this.TxtHanThanhToan.DataType = typeof(short);
            this.TxtHanThanhToan.FormatType = FormatTypeEnum.Integer;
            point = new Point(0x73, 130);
            this.TxtHanThanhToan.Location = point;
            this.TxtHanThanhToan.Name = "TxtHanThanhToan";
            padding = new Padding(1);
            this.TxtHanThanhToan.Padding = padding;
            size = new Size(0x19, 20);
            this.TxtHanThanhToan.Size = size;
            this.TxtHanThanhToan.TabIndex = 11;
            this.TxtHanThanhToan.Tag = null;
            this.TxtHanThanhToan.TextAlign = HorizontalAlignment.Right;
            this.TxtHanThanhToan.Value = (short) 0;
            this.TxtHanThanhToan.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtHanThanhToan.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtHanThanhToan.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label24.AutoSize = true;
            this.Label24.BackColor = Color.Transparent;
            point = new Point(13, 0x85);
            this.Label24.Location = point;
            this.Label24.Name = "Label24";
            size = new Size(0x51, 13);
            this.Label24.Size = size;
            this.Label24.TabIndex = 0x18;
            this.Label24.Text = "Hạn thanh to\x00e1n";
            this.TxtNgayToiHanThanhToan.Format = DateTimePickerFormat.Custom;
            point = new Point(0x8d, 130);
            this.TxtNgayToiHanThanhToan.Location = point;
            this.TxtNgayToiHanThanhToan.Name = "TxtNgayToiHanThanhToan";
            size = new Size(0x52, 20);
            this.TxtNgayToiHanThanhToan.Size = size;
            this.TxtNgayToiHanThanhToan.TabIndex = 12;
            this.TxtHanNopThue.BorderStyle = BorderStyle.FixedSingle;
            this.TxtHanNopThue.DataType = typeof(short);
            this.TxtHanNopThue.FormatType = FormatTypeEnum.Integer;
            point = new Point(0x13c, 0x29);
            this.TxtHanNopThue.Location = point;
            this.TxtHanNopThue.Name = "TxtHanNopThue";
            padding = new Padding(1);
            this.TxtHanNopThue.Padding = padding;
            size = new Size(30, 20);
            this.TxtHanNopThue.Size = size;
            this.TxtHanNopThue.TabIndex = 4;
            this.TxtHanNopThue.Tag = null;
            this.TxtHanNopThue.TextAlign = HorizontalAlignment.Right;
            this.TxtHanNopThue.Value = (short) 0;
            this.TxtHanNopThue.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtHanNopThue.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtHanNopThue.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label44.AutoSize = true;
            this.Label44.BackColor = Color.Transparent;
            point = new Point(0xe7, 0x2c);
            this.Label44.Location = point;
            this.Label44.Name = "Label44";
            size = new Size(0x48, 13);
            this.Label44.Size = size;
            this.Label44.TabIndex = 11;
            this.Label44.Text = "Hạn nộp thuế";
            this.TxtNgayNopThue.Format = DateTimePickerFormat.Custom;
            point = new Point(0x15c, 0x29);
            this.TxtNgayNopThue.Location = point;
            this.TxtNgayNopThue.Name = "TxtNgayNopThue";
            size = new Size(0x54, 20);
            this.TxtNgayNopThue.Size = size;
            this.TxtNgayNopThue.TabIndex = 5;
            this.Label58.AutoSize = true;
            this.Label58.BackColor = Color.Transparent;
            point = new Point(0xe7, 0x42);
            this.Label58.Location = point;
            this.Label58.Name = "Label58";
            size = new Size(0x20, 13);
            this.Label58.Size = size;
            this.Label58.TabIndex = 0x10;
            this.Label58.Text = "Ng\x00e0y";
            this.TxtNgayHoaDonNK.Format = DateTimePickerFormat.Custom;
            point = new Point(0x13c, 0x3f);
            this.TxtNgayHoaDonNK.Location = point;
            this.TxtNgayHoaDonNK.Name = "TxtNgayHoaDonNK";
            size = new Size(0x74, 20);
            this.TxtNgayHoaDonNK.Size = size;
            this.TxtNgayHoaDonNK.TabIndex = 7;
            this.Label43.AutoSize = true;
            this.Label43.BackColor = Color.Transparent;
            point = new Point(13, 0x43);
            this.Label43.Location = point;
            this.Label43.Name = "Label43";
            size = new Size(0x2a, 13);
            this.Label43.Size = size;
            this.Label43.TabIndex = 14;
            this.Label43.Text = "Invoice";
            point = new Point(0x73, 0x40);
            this.TxtSoHoaDonThueNK.Location = point;
            this.TxtSoHoaDonThueNK.Name = "TxtSoHoaDonThueNK";
            size = new Size(0x6c, 20);
            this.TxtSoHoaDonThueNK.Size = size;
            this.TxtSoHoaDonThueNK.TabIndex = 6;
            this.Label62.AutoSize = true;
            this.Label62.BackColor = Color.Transparent;
            point = new Point(0x1ca, 0x91);
            this.Label62.Location = point;
            this.Label62.Name = "Label62";
            size = new Size(0x45, 13);
            this.Label62.Size = size;
            this.Label62.TabIndex = 0x24;
            this.Label62.Text = "TK. c\x00f3 (VAT)";
            this.Label20.AutoSize = true;
            this.Label20.BackColor = Color.Transparent;
            point = new Point(0x1ca, 0x7b);
            this.Label20.Location = point;
            this.Label20.Name = "Label20";
            size = new Size(0x45, 13);
            this.Label20.Size = size;
            this.Label20.TabIndex = 0x22;
            this.Label20.Text = "TK. nợ (VAT)";
            this.Label18.AutoSize = true;
            this.Label18.BackColor = Color.Transparent;
            point = new Point(0x1cb, 0x65);
            this.Label18.Location = point;
            this.Label18.Name = "Label18";
            size = new Size(0x66, 13);
            this.Label18.Size = size;
            this.Label18.TabIndex = 0x20;
            this.Label18.Text = "TK. thuế nhập khẩu";
            this.Label2.AutoSize = true;
            this.Label2.BackColor = Color.Transparent;
            point = new Point(0x1cb, 80);
            this.Label2.Location = point;
            this.Label2.Name = "Label2";
            size = new Size(0x4e, 13);
            this.Label2.Size = size;
            this.Label2.TabIndex = 30;
            this.Label2.Text = "TK. thanh to\x00e1n";
            point = new Point(0x71, 0xa5);
            this.TxtDienGiai.Location = point;
            this.TxtDienGiai.Name = "TxtDienGiai";
            size = new Size(0x31f, 20);
            this.TxtDienGiai.Size = size;
            this.TxtDienGiai.TabIndex = 0x13;
            this.Label9.AutoEllipsis = true;
            this.Label9.AutoSize = true;
            this.Label9.BackColor = Color.Transparent;
            point = new Point(10, 0xa8);
            this.Label9.Location = point;
            this.Label9.Name = "Label9";
            this.Label9.RightToLeft = RightToLeft.No;
            size = new Size(0x30, 13);
            this.Label9.Size = size;
            this.Label9.TabIndex = 0x26;
            this.Label9.Text = "Diễn giải";
            this.Label9.TextAlign = ContentAlignment.TopRight;
            this.GroupBox1.BackColor = Color.Transparent;
            this.GroupBox1.Controls.Add(this.CboKhaiThue);
            this.GroupBox1.Controls.Add(this.TxtThueSuat);
            this.GroupBox1.Controls.Add(this.Label69);
            this.GroupBox1.Controls.Add(this.Label15);
            this.GroupBox1.Controls.Add(this.Label14);
            this.GroupBox1.Controls.Add(this.TxtSoSeri);
            this.GroupBox1.Controls.Add(this.Label8);
            this.GroupBox1.Controls.Add(this.TxtNgayHoaDon);
            this.GroupBox1.Controls.Add(this.Label12);
            this.GroupBox1.Controls.Add(this.TxtSoHoaDon);
            point = new Point(0x1c3, 7);
            this.GroupBox1.Location = point;
            this.GroupBox1.Name = "GroupBox1";
            size = new Size(0x216, 0x42);
            this.GroupBox1.Size = size;
            this.GroupBox1.TabIndex = 14;
            this.GroupBox1.TabStop = false;
            this.GroupBox1.Text = "H\x00f3a đơn thuế VAT";
            this.CboKhaiThue.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboKhaiThue.FormattingEnabled = true;
            point = new Point(0x4b, 0x29);
            this.CboKhaiThue.Location = point;
            this.CboKhaiThue.Name = "CboKhaiThue";
            size = new Size(0x1c5, 0x15);
            this.CboKhaiThue.Size = size;
            this.CboKhaiThue.TabIndex = 4;
            this.TxtThueSuat.BorderStyle = BorderStyle.FixedSingle;
            this.TxtThueSuat.DataType = typeof(short);
            this.TxtThueSuat.FormatType = FormatTypeEnum.Integer;
            point = new Point(0x1be, 15);
            this.TxtThueSuat.Location = point;
            this.TxtThueSuat.Name = "TxtThueSuat";
            padding = new Padding(1);
            this.TxtThueSuat.Padding = padding;
            size = new Size(0x53, 20);
            this.TxtThueSuat.Size = size;
            this.TxtThueSuat.TabIndex = 3;
            this.TxtThueSuat.Tag = null;
            this.TxtThueSuat.VisibleButtons = DropDownControlButtonFlags.DropDown;
            this.TxtThueSuat.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtThueSuat.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label69.AutoSize = true;
            point = new Point(6, 0x2c);
            this.Label69.Location = point;
            this.Label69.Name = "Label69";
            size = new Size(0x34, 13);
            this.Label69.Size = size;
            this.Label69.TabIndex = 10;
            this.Label69.Text = "Khai thuế";
            this.Label15.AutoSize = true;
            point = new Point(0x185, 0x12);
            this.Label15.Location = point;
            this.Label15.Name = "Label15";
            size = new Size(0x37, 13);
            this.Label15.Size = size;
            this.Label15.TabIndex = 2;
            this.Label15.Text = "Thuế suất";
            this.Label15.TextAlign = ContentAlignment.TopRight;
            this.Label14.AutoSize = true;
            point = new Point(0x90, 0x13);
            this.Label14.Location = point;
            this.Label14.Name = "Label14";
            size = new Size(0x27, 13);
            this.Label14.Size = size;
            this.Label14.TabIndex = 6;
            this.Label14.Text = "Số seri";
            point = new Point(0xbb, 0x10);
            this.TxtSoSeri.Location = point;
            this.TxtSoSeri.Name = "TxtSoSeri";
            size = new Size(0x51, 20);
            this.TxtSoSeri.Size = size;
            this.TxtSoSeri.TabIndex = 1;
            this.Label8.AutoSize = true;
            point = new Point(0x110, 0x13);
            this.Label8.Location = point;
            this.Label8.Name = "Label8";
            size = new Size(0x20, 13);
            this.Label8.Size = size;
            this.Label8.TabIndex = 8;
            this.Label8.Text = "Ng\x00e0y";
            this.TxtNgayHoaDon.Format = DateTimePickerFormat.Custom;
            point = new Point(0x133, 15);
            this.TxtNgayHoaDon.Location = point;
            this.TxtNgayHoaDon.Name = "TxtNgayHoaDon";
            size = new Size(0x54, 20);
            this.TxtNgayHoaDon.Size = size;
            this.TxtNgayHoaDon.TabIndex = 2;
            this.Label12.AutoSize = true;
            point = new Point(5, 0x13);
            this.Label12.Location = point;
            this.Label12.Name = "Label12";
            size = new Size(0x3f, 13);
            this.Label12.Size = size;
            this.Label12.TabIndex = 4;
            this.Label12.Text = "Số h\x00f3a đơn";
            point = new Point(0x4b, 15);
            this.TxtSoHoaDon.Location = point;
            this.TxtSoHoaDon.Name = "TxtSoHoaDon";
            size = new Size(0x42, 20);
            this.TxtSoHoaDon.Size = size;
            this.TxtSoHoaDon.TabIndex = 0;
            this.Label17.AutoSize = true;
            this.Label17.BackColor = Color.Transparent;
            point = new Point(13, 0x2c);
            this.Label17.Location = point;
            this.Label17.Name = "Label17";
            size = new Size(0x37, 13);
            this.Label17.Size = size;
            this.Label17.TabIndex = 9;
            this.Label17.Text = "Số tờ khai";
            point = new Point(0x73, 0x2a);
            this.TxtSoToKhai.Location = point;
            this.TxtSoToKhai.Name = "TxtSoToKhai";
            size = new Size(0x6c, 20);
            this.TxtSoToKhai.Size = size;
            this.TxtSoToKhai.TabIndex = 2;
            point = new Point(0xba, 0x83);
            this.TxtSoDonHang.Location = point;
            this.TxtSoDonHang.Name = "TxtSoDonHang";
            this.TxtSoDonHang.ReadOnly = true;
            size = new Size(0x57, 20);
            this.TxtSoDonHang.Size = size;
            this.TxtSoDonHang.TabIndex = 0;
            this.TxtSoDonHang.Visible = false;
            this.CboLoaiTien.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboLoaiTien.FormattingEnabled = true;
            point = new Point(0x73, 0x56);
            this.CboLoaiTien.Location = point;
            this.CboLoaiTien.Name = "CboLoaiTien";
            size = new Size(0x6c, 0x15);
            this.CboLoaiTien.Size = size;
            this.CboLoaiTien.TabIndex = 8;
            this.txtTyGia.BorderStyle = BorderStyle.FixedSingle;
            this.txtTyGia.DataType = typeof(double);
            this.txtTyGia.FormatType = FormatTypeEnum.CustomFormat;
            point = new Point(0x13c, 0x55);
            this.txtTyGia.Location = point;
            this.txtTyGia.Name = "txtTyGia";
            padding = new Padding(1);
            this.txtTyGia.Padding = padding;
            size = new Size(0x74, 20);
            this.txtTyGia.Size = size;
            this.txtTyGia.TabIndex = 9;
            this.txtTyGia.Tag = null;
            this.txtTyGia.VisibleButtons = DropDownControlButtonFlags.DropDown;
            this.txtTyGia.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.txtTyGia.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label11.AutoSize = true;
            this.Label11.BackColor = Color.Transparent;
            point = new Point(13, 0x59);
            this.Label11.Location = point;
            this.Label11.Name = "Label11";
            size = new Size(0x2f, 13);
            this.Label11.Size = size;
            this.Label11.TabIndex = 0x12;
            this.Label11.Text = "Loại tiền";
            this.Label11.TextAlign = ContentAlignment.TopRight;
            this.Label10.AutoSize = true;
            this.Label10.BackColor = Color.Transparent;
            point = new Point(0xe7, 0x58);
            this.Label10.Location = point;
            this.Label10.Name = "Label10";
            size = new Size(0x24, 13);
            this.Label10.Size = size;
            this.Label10.TabIndex = 20;
            this.Label10.Text = "Tỷ gi\x00e1";
            this.Label10.TextAlign = ContentAlignment.TopRight;
            this.Label13.AutoSize = true;
            this.Label13.BackColor = Color.Transparent;
            point = new Point(0xe7, 0x15);
            this.Label13.Location = point;
            this.Label13.Name = "Label13";
            size = new Size(0x4d, 13);
            this.Label13.Size = size;
            this.Label13.TabIndex = 7;
            this.Label13.Text = "Ng\x00e0y chứng từ";
            this.TxtNgayChungTu.Format = DateTimePickerFormat.Custom;
            point = new Point(0x13c, 0x12);
            this.TxtNgayChungTu.Location = point;
            this.TxtNgayChungTu.Name = "TxtNgayChungTu";
            size = new Size(0x74, 20);
            this.TxtNgayChungTu.Size = size;
            this.TxtNgayChungTu.TabIndex = 1;
            this.Label1.AutoSize = true;
            this.Label1.BackColor = Color.Transparent;
            point = new Point(13, 0x15);
            this.Label1.Location = point;
            this.Label1.Name = "Label1";
            size = new Size(0x41, 13);
            this.Label1.Size = size;
            this.Label1.TabIndex = 5;
            this.Label1.Text = "Số chứng từ";
            point = new Point(0x73, 0x13);
            this.TxtSoChungTu.Location = point;
            this.TxtSoChungTu.Name = "TxtSoChungTu";
            size = new Size(0x6c, 20);
            this.TxtSoChungTu.Size = size;
            this.TxtSoChungTu.TabIndex = 0;
            point = new Point(0x70, 0x83);
            this.TxtDienGiaiPhiNK.Location = point;
            this.TxtDienGiaiPhiNK.Name = "TxtDienGiaiPhiNK";
            size = new Size(0x34d, 20);
            this.TxtDienGiaiPhiNK.Size = size;
            this.TxtDienGiaiPhiNK.TabIndex = 0x1f;
            this.Label66.AutoEllipsis = true;
            this.Label66.AutoSize = true;
            this.Label66.BackColor = Color.Transparent;
            point = new Point(0x13, 0x86);
            this.Label66.Location = point;
            this.Label66.Name = "Label66";
            this.Label66.RightToLeft = RightToLeft.No;
            size = new Size(0x30, 13);
            this.Label66.Size = size;
            this.Label66.TabIndex = 30;
            this.Label66.Text = "Diễn giải";
            this.Label66.TextAlign = ContentAlignment.TopRight;
            this.CboLoaiTienCP.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboLoaiTienCP.FormattingEnabled = true;
            point = new Point(0x70, 0x52);
            this.CboLoaiTienCP.Location = point;
            this.CboLoaiTienCP.Name = "CboLoaiTienCP";
            size = new Size(120, 0x15);
            this.CboLoaiTienCP.Size = size;
            this.CboLoaiTienCP.TabIndex = 7;
            this.TxtTyGiaCP.BorderStyle = BorderStyle.FixedSingle;
            this.TxtTyGiaCP.DataType = typeof(double);
            this.TxtTyGiaCP.FormatType = FormatTypeEnum.Currency;
            point = new Point(0x156, 0x53);
            this.TxtTyGiaCP.Location = point;
            this.TxtTyGiaCP.Name = "TxtTyGiaCP";
            padding = new Padding(1);
            this.TxtTyGiaCP.Padding = padding;
            size = new Size(0x7a, 20);
            this.TxtTyGiaCP.Size = size;
            this.TxtTyGiaCP.TabIndex = 9;
            this.TxtTyGiaCP.Tag = null;
            this.TxtTyGiaCP.VisibleButtons = DropDownControlButtonFlags.DropDown;
            this.TxtTyGiaCP.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTyGiaCP.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label61.AutoSize = true;
            this.Label61.BackColor = Color.Transparent;
            point = new Point(0x13, 0x56);
            this.Label61.Location = point;
            this.Label61.Name = "Label61";
            size = new Size(0x2f, 13);
            this.Label61.Size = size;
            this.Label61.TabIndex = 6;
            this.Label61.Text = "Loại tiền";
            this.Label61.TextAlign = ContentAlignment.TopRight;
            this.Label63.AutoSize = true;
            this.Label63.BackColor = Color.Transparent;
            point = new Point(300, 0x56);
            this.Label63.Location = point;
            this.Label63.Name = "Label63";
            size = new Size(0x24, 13);
            this.Label63.Size = size;
            this.Label63.TabIndex = 8;
            this.Label63.Text = "Tỷ gi\x00e1";
            this.Label63.TextAlign = ContentAlignment.TopRight;
            this.TxtTienThuePhi.BorderStyle = BorderStyle.FixedSingle;
            this.TxtTienThuePhi.DataType = typeof(double);
            this.TxtTienThuePhi.FormatType = FormatTypeEnum.Currency;
            point = new Point(0x339, 0x6c);
            this.TxtTienThuePhi.Location = point;
            this.TxtTienThuePhi.Name = "TxtTienThuePhi";
            padding = new Padding(1);
            this.TxtTienThuePhi.Padding = padding;
            this.TxtTienThuePhi.ReadOnly = true;
            size = new Size(0x84, 20);
            this.TxtTienThuePhi.Size = size;
            this.TxtTienThuePhi.TabIndex = 0x1d;
            this.TxtTienThuePhi.Tag = null;
            this.TxtTienThuePhi.TextAlign = HorizontalAlignment.Right;
            this.TxtTienThuePhi.Visible = false;
            this.TxtTienThuePhi.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtTienThuePhi.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTienThuePhi.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label59.AutoSize = true;
            this.Label59.BackColor = Color.Transparent;
            point = new Point(0x2ea, 0x70);
            this.Label59.Location = point;
            this.Label59.Name = "Label59";
            size = new Size(0x2c, 13);
            this.Label59.Size = size;
            this.Label59.TabIndex = 0x1c;
            this.Label59.Text = "Quy đổi";
            this.Label59.Visible = false;
            this.TxtTienThuePhiNT.BorderStyle = BorderStyle.FixedSingle;
            this.TxtTienThuePhiNT.DataType = typeof(double);
            this.TxtTienThuePhiNT.FormatType = FormatTypeEnum.Currency;
            point = new Point(0x261, 0x6c);
            this.TxtTienThuePhiNT.Location = point;
            this.TxtTienThuePhiNT.Name = "TxtTienThuePhiNT";
            padding = new Padding(1);
            this.TxtTienThuePhiNT.Padding = padding;
            this.TxtTienThuePhiNT.ReadOnly = true;
            size = new Size(0x83, 20);
            this.TxtTienThuePhiNT.Size = size;
            this.TxtTienThuePhiNT.TabIndex = 0x1b;
            this.TxtTienThuePhiNT.Tag = null;
            this.TxtTienThuePhiNT.TextAlign = HorizontalAlignment.Right;
            this.TxtTienThuePhiNT.Visible = false;
            this.TxtTienThuePhiNT.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtTienThuePhiNT.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTienThuePhiNT.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label60.AutoSize = true;
            this.Label60.BackColor = Color.Transparent;
            point = new Point(0x204, 0x70);
            this.Label60.Location = point;
            this.Label60.Name = "Label60";
            size = new Size(0x44, 13);
            this.Label60.Size = size;
            this.Label60.TabIndex = 0x1a;
            this.Label60.Text = "Thuế chi ph\x00ed";
            this.Label60.Visible = false;
            this.Label55.AutoSize = true;
            this.Label55.BackColor = Color.Transparent;
            point = new Point(0x13, 0x27);
            this.Label55.Location = point;
            this.Label55.Name = "Label55";
            size = new Size(0x4f, 13);
            this.Label55.Size = size;
            this.Label55.TabIndex = 2;
            this.Label55.Text = "T\x00e0i khoản thuế";
            this.TxtTienPhiCP.BorderStyle = BorderStyle.FixedSingle;
            this.TxtTienPhiCP.DataType = typeof(double);
            this.TxtTienPhiCP.FormatType = FormatTypeEnum.Currency;
            point = new Point(0x339, 0x55);
            this.TxtTienPhiCP.Location = point;
            this.TxtTienPhiCP.Name = "TxtTienPhiCP";
            padding = new Padding(1);
            this.TxtTienPhiCP.Padding = padding;
            this.TxtTienPhiCP.ReadOnly = true;
            size = new Size(0x84, 20);
            this.TxtTienPhiCP.Size = size;
            this.TxtTienPhiCP.TabIndex = 0x19;
            this.TxtTienPhiCP.Tag = null;
            this.TxtTienPhiCP.TextAlign = HorizontalAlignment.Right;
            this.TxtTienPhiCP.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtTienPhiCP.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTienPhiCP.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label54.AutoSize = true;
            this.Label54.BackColor = Color.Transparent;
            point = new Point(0x2ea, 0x59);
            this.Label54.Location = point;
            this.Label54.Name = "Label54";
            size = new Size(0x2c, 13);
            this.Label54.Size = size;
            this.Label54.TabIndex = 0x18;
            this.Label54.Text = "Quy đổi";
            this.TxtThueSuatCP.BorderStyle = BorderStyle.FixedSingle;
            this.TxtThueSuatCP.DataType = typeof(short);
            this.TxtThueSuatCP.FormatType = FormatTypeEnum.Integer;
            point = new Point(0x339, 0x3e);
            this.TxtThueSuatCP.Location = point;
            this.TxtThueSuatCP.Name = "TxtThueSuatCP";
            padding = new Padding(1);
            this.TxtThueSuatCP.Padding = padding;
            size = new Size(0x84, 20);
            this.TxtThueSuatCP.Size = size;
            this.TxtThueSuatCP.TabIndex = 0x15;
            this.TxtThueSuatCP.Tag = null;
            this.TxtThueSuatCP.VisibleButtons = DropDownControlButtonFlags.DropDown;
            this.TxtThueSuatCP.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtThueSuatCP.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label47.AutoSize = true;
            this.Label47.BackColor = Color.Transparent;
            point = new Point(0x2ea, 0x41);
            this.Label47.Location = point;
            this.Label47.Name = "Label47";
            size = new Size(0x37, 13);
            this.Label47.Size = size;
            this.Label47.TabIndex = 20;
            this.Label47.Text = "Thuế suất";
            this.Label47.TextAlign = ContentAlignment.TopRight;
            this.Label48.AutoSize = true;
            this.Label48.BackColor = Color.Transparent;
            point = new Point(0x204, 0x41);
            this.Label48.Location = point;
            this.Label48.Name = "Label48";
            size = new Size(0x27, 13);
            this.Label48.Size = size;
            this.Label48.TabIndex = 0x12;
            this.Label48.Text = "Số seri";
            point = new Point(0x261, 0x3e);
            this.TxtSoSeriCP.Location = point;
            this.TxtSoSeriCP.Name = "TxtSoSeriCP";
            size = new Size(0x83, 20);
            this.TxtSoSeriCP.Size = size;
            this.TxtSoSeriCP.TabIndex = 0x13;
            this.Label49.AutoSize = true;
            this.Label49.BackColor = Color.Transparent;
            point = new Point(0x2ea, 0x29);
            this.Label49.Location = point;
            this.Label49.Name = "Label49";
            size = new Size(0x4b, 13);
            this.Label49.Size = size;
            this.Label49.TabIndex = 0x10;
            this.Label49.Text = "Ng\x00e0y h\x00f3a đơn";
            this.TxtNgayHoaDonCP.Format = DateTimePickerFormat.Custom;
            point = new Point(0x339, 0x26);
            this.TxtNgayHoaDonCP.Location = point;
            this.TxtNgayHoaDonCP.Name = "TxtNgayHoaDonCP";
            size = new Size(0x84, 20);
            this.TxtNgayHoaDonCP.Size = size;
            this.TxtNgayHoaDonCP.TabIndex = 0x11;
            this.Label50.AutoSize = true;
            this.Label50.BackColor = Color.Transparent;
            point = new Point(0x204, 0x29);
            this.Label50.Location = point;
            this.Label50.Name = "Label50";
            size = new Size(0x3f, 13);
            this.Label50.Size = size;
            this.Label50.TabIndex = 14;
            this.Label50.Text = "Số h\x00f3a đơn";
            point = new Point(0x261, 0x26);
            this.TxtSoHoaDonCP.Location = point;
            this.TxtSoHoaDonCP.Name = "TxtSoHoaDonCP";
            size = new Size(0x83, 20);
            this.TxtSoHoaDonCP.Size = size;
            this.TxtSoHoaDonCP.TabIndex = 15;
            this.CboLoaiHoaDonCP.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboLoaiHoaDonCP.FormattingEnabled = true;
            point = new Point(0x261, 13);
            this.CboLoaiHoaDonCP.Location = point;
            this.CboLoaiHoaDonCP.Name = "CboLoaiHoaDonCP";
            size = new Size(0x15c, 0x15);
            this.CboLoaiHoaDonCP.Size = size;
            this.CboLoaiHoaDonCP.TabIndex = 13;
            this.Label51.AutoSize = true;
            this.Label51.BackColor = Color.Transparent;
            point = new Point(0x204, 0x11);
            this.Label51.Location = point;
            this.Label51.Name = "Label51";
            size = new Size(0x34, 13);
            this.Label51.Size = size;
            this.Label51.TabIndex = 12;
            this.Label51.Text = "Khai thuế";
            this.Label51.TextAlign = ContentAlignment.TopRight;
            this.CboPhanBoCP.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboPhanBoCP.FormattingEnabled = true;
            point = new Point(0x70, 0x6a);
            this.CboPhanBoCP.Location = point;
            this.CboPhanBoCP.Name = "CboPhanBoCP";
            size = new Size(0x160, 0x15);
            this.CboPhanBoCP.Size = size;
            this.CboPhanBoCP.TabIndex = 11;
            this.Label52.AutoSize = true;
            this.Label52.BackColor = Color.Transparent;
            point = new Point(0x13, 0x6f);
            this.Label52.Location = point;
            this.Label52.Name = "Label52";
            size = new Size(0x2f, 13);
            this.Label52.Size = size;
            this.Label52.TabIndex = 10;
            this.Label52.Text = "Ph\x00e2n bổ";
            this.Label52.TextAlign = ContentAlignment.TopRight;
            this.TxtTienPhiCPNT.BorderStyle = BorderStyle.FixedSingle;
            this.TxtTienPhiCPNT.DataType = typeof(double);
            this.TxtTienPhiCPNT.FormatType = FormatTypeEnum.Currency;
            point = new Point(0x261, 0x55);
            this.TxtTienPhiCPNT.Location = point;
            this.TxtTienPhiCPNT.Name = "TxtTienPhiCPNT";
            padding = new Padding(1);
            this.TxtTienPhiCPNT.Padding = padding;
            size = new Size(0x83, 20);
            this.TxtTienPhiCPNT.Size = size;
            this.TxtTienPhiCPNT.TabIndex = 0x17;
            this.TxtTienPhiCPNT.Tag = null;
            this.TxtTienPhiCPNT.TextAlign = HorizontalAlignment.Right;
            this.TxtTienPhiCPNT.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtTienPhiCPNT.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTienPhiCPNT.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label53.AutoSize = true;
            this.Label53.BackColor = Color.Transparent;
            point = new Point(0x204, 0x59);
            this.Label53.Location = point;
            this.Label53.Name = "Label53";
            size = new Size(0x2f, 13);
            this.Label53.Size = size;
            this.Label53.TabIndex = 0x16;
            this.Label53.Text = "Tiền ph\x00ed";
            this.Label56.AutoSize = true;
            this.Label56.BackColor = Color.Transparent;
            point = new Point(0x13, 0x10);
            this.Label56.Location = point;
            this.Label56.Name = "Label56";
            size = new Size(70, 13);
            this.Label56.Size = size;
            this.Label56.TabIndex = 0;
            this.Label56.Text = "T\x00e0i khoản c\x00f3";
            this.Label57.AutoEllipsis = true;
            this.Label57.AutoSize = true;
            this.Label57.BackColor = Color.Transparent;
            point = new Point(0x13, 0x3e);
            this.Label57.Location = point;
            this.Label57.Name = "Label57";
            this.Label57.RightToLeft = RightToLeft.No;
            size = new Size(0x4b, 13);
            this.Label57.Size = size;
            this.Label57.TabIndex = 4;
            this.Label57.Text = "Nh\x00e0 cung cấp";
            this.Label57.TextAlign = ContentAlignment.TopRight;
            this.ToolStrip1.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgbluenoborder;
            this.ToolStrip1.Items.AddRange(new ToolStripItem[] { 
                this.CmdAdd, this.CmdEdit, this.ToolStripSeparator2, this.CmdSave, this.CmdUnsave, this.ToolStripSeparator1, this.CmdFind, this.CmdPrint, this.ToolStripButton1, this.CmdDel, this.ToolStripSeparator3, this.CmdExit, this.CmdChiPhi, this.CmdGhiSo, this.CmdHelp, this.CmdBoGhiSo, 
                this.ToolStripSeparator5
             });
            point = new Point(0, 0);
            this.ToolStrip1.Location = point;
            this.ToolStrip1.Name = "ToolStrip1";
            size = new Size(0x3e2, 0x19);
            this.ToolStrip1.Size = size;
            this.ToolStrip1.TabIndex = 0;
            this.ToolStrip1.Text = "ToolStrip1";
            this.CmdAdd.Image = (Image) manager.GetObject("CmdAdd.Image");
            this.CmdAdd.ImageTransparentColor = Color.White;
            this.CmdAdd.Name = "CmdAdd";
            size = new Size(0x52, 0x16);
            this.CmdAdd.Size = size;
            this.CmdAdd.Text = "&Th\x00eam mới";
            this.CmdEdit.Image = (Image) manager.GetObject("CmdEdit.Image");
            this.CmdEdit.ImageTransparentColor = Color.White;
            this.CmdEdit.Name = "CmdEdit";
            size = new Size(0x2e, 0x16);
            this.CmdEdit.Size = size;
            this.CmdEdit.Text = "&Sửa";
            this.CmdSave.Image = (Image) manager.GetObject("CmdSave.Image");
            this.CmdSave.ImageTransparentColor = Color.WhiteSmoke;
            this.CmdSave.Name = "CmdSave";
            size = new Size(0x2f, 0x16);
            this.CmdSave.Size = size;
            this.CmdSave.Text = "&Lưu";
            this.CmdUnsave.Image = (Image) manager.GetObject("CmdUnsave.Image");
            this.CmdUnsave.ImageTransparentColor = Color.White;
            this.CmdUnsave.Name = "CmdUnsave";
            size = new Size(0x39, 0x16);
            this.CmdUnsave.Size = size;
            this.CmdUnsave.Text = "&K.Lưu";
            this.CmdFind.Image = (Image) manager.GetObject("CmdFind.Image");
            this.CmdFind.ImageTransparentColor = Color.White;
            this.CmdFind.Name = "CmdFind";
            size = new Size(0x4d, 0x16);
            this.CmdFind.Size = size;
            this.CmdFind.Text = "T\x00ecm kiếm";
            this.CmdPrint.Image = (Image) manager.GetObject("CmdPrint.Image");
            this.CmdPrint.ImageTransparentColor = Color.White;
            this.CmdPrint.Name = "CmdPrint";
            size = new Size(0x25, 0x16);
            this.CmdPrint.Size = size;
            this.CmdPrint.Text = "&In";
            this.CmdDel.Image = (Image) manager.GetObject("CmdDel.Image");
            this.CmdDel.ImageTransparentColor = Color.White;
            this.CmdDel.Name = "CmdDel";
            size = new Size(0x2f, 0x16);
            this.CmdDel.Size = size;
            this.CmdDel.Text = "&X\x00f3a";
            this.CmdExit.Alignment = ToolStripItemAlignment.Right;
            this.CmdExit.Image = (Image) manager.GetObject("CmdExit.Image");
            this.CmdExit.ImageTransparentColor = Color.White;
            this.CmdExit.Name = "CmdExit";
            size = new Size(0x3a, 0x16);
            this.CmdExit.Size = size;
            this.CmdExit.Text = "Th&o\x00e1t";
            this.CmdChiPhi.Image = (Image) manager.GetObject("CmdChiPhi.Image");
            this.CmdChiPhi.ImageTransparentColor = Color.Magenta;
            this.CmdChiPhi.Name = "CmdChiPhi";
            size = new Size(0x41, 0x16);
            this.CmdChiPhi.Size = size;
            this.CmdChiPhi.Text = "Chi ph\x00ed";
            this.CmdChiPhi.Visible = false;
            this.CmdGhiSo.Image = (Image) manager.GetObject("CmdGhiSo.Image");
            this.CmdGhiSo.ImageTransparentColor = Color.White;
            this.CmdGhiSo.Name = "CmdGhiSo";
            size = new Size(60, 0x16);
            this.CmdGhiSo.Size = size;
            this.CmdGhiSo.Text = "Ghi sổ";
            this.CmdGhiSo.Visible = false;
            this.CmdHelp.Alignment = ToolStripItemAlignment.Right;
            this.CmdHelp.Image = (Image) manager.GetObject("CmdHelp.Image");
            this.CmdHelp.ImageScaling = ToolStripItemImageScaling.None;
            this.CmdHelp.ImageTransparentColor = Color.White;
            this.CmdHelp.Name = "CmdHelp";
            size = new Size(0x35, 0x16);
            this.CmdHelp.Size = size;
            this.CmdHelp.Text = "&Help";
            this.CmdBoGhiSo.Image = (Image) manager.GetObject("CmdBoGhiSo.Image");
            this.CmdBoGhiSo.ImageTransparentColor = Color.Magenta;
            this.CmdBoGhiSo.Name = "CmdBoGhiSo";
            size = new Size(0x54, 0x16);
            this.CmdBoGhiSo.Size = size;
            this.CmdBoGhiSo.Text = "Huỷ ghi sổ";
            this.CmdBoGhiSo.Visible = false;
            this.ToolStripSeparator5.Name = "ToolStripSeparator5";
            size = new Size(6, 0x19);
            this.ToolStripSeparator5.Size = size;
            this.ToolStripSeparator5.Visible = false;
            this.Panel4.BackgroundImage = ACCOUNTING.My.Resources.Resources.background;
            this.Panel4.Controls.Add(this.TxtSoLuong);
            this.Panel4.Controls.Add(this.GroupBox2);
            this.Panel4.Controls.Add(this.CmdCopy);
            this.Panel4.Controls.Add(this.CmdDelRow);
            this.Panel4.Controls.Add(this.CmdAddRow);
            this.Panel4.Controls.Add(this.Panel5);
            this.Panel4.Dock = DockStyle.Bottom;
            point = new Point(0, 0x233);
            this.Panel4.Location = point;
            this.Panel4.Name = "Panel4";
            size = new Size(0x3e2, 0x69);
            this.Panel4.Size = size;
            this.Panel4.TabIndex = 1;
            this.TxtSoLuong.BorderStyle = BorderStyle.FixedSingle;
            this.TxtSoLuong.DataType = typeof(double);
            this.TxtSoLuong.FormatType = FormatTypeEnum.Currency;
            point = new Point(0x111, 0x6d);
            this.TxtSoLuong.Location = point;
            this.TxtSoLuong.Name = "TxtSoLuong";
            padding = new Padding(1);
            this.TxtSoLuong.Padding = padding;
            size = new Size(0x55, 20);
            this.TxtSoLuong.Size = size;
            this.TxtSoLuong.TabIndex = 0xa3;
            this.TxtSoLuong.Tag = null;
            this.TxtSoLuong.TextAlign = HorizontalAlignment.Right;
            this.TxtSoLuong.VisibleButtons = DropDownControlButtonFlags.DropDown;
            this.TxtSoLuong.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtSoLuong.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.GroupBox2.BackgroundImage = ACCOUNTING.My.Resources.Resources.background;
            this.GroupBox2.Controls.Add(this.Label45);
            this.GroupBox2.Controls.Add(this.Label42);
            this.GroupBox2.Controls.Add(this.CboPhanBo);
            this.GroupBox2.Controls.Add(this.TxtChiPhiPhanBo);
            this.GroupBox2.Controls.Add(this.CKPhanBoPhi);
            point = new Point(12, 0x1c);
            this.GroupBox2.Location = point;
            this.GroupBox2.Name = "GroupBox2";
            size = new Size(0x128, 0x41);
            this.GroupBox2.Size = size;
            this.GroupBox2.TabIndex = 0x86;
            this.GroupBox2.TabStop = false;
            this.Label45.AutoSize = true;
            this.Label45.BackColor = Color.Transparent;
            point = new Point(120, 0x18);
            this.Label45.Location = point;
            this.Label45.Name = "Label45";
            size = new Size(0x47, 13);
            this.Label45.Size = size;
            this.Label45.TabIndex = 0x89;
            this.Label45.Text = "Phương ph\x00e1p";
            this.Label45.TextAlign = ContentAlignment.TopRight;
            this.Label42.AutoSize = true;
            this.Label42.BackColor = Color.Transparent;
            point = new Point(8, 0x18);
            this.Label42.Location = point;
            this.Label42.Name = "Label42";
            size = new Size(40, 13);
            this.Label42.Size = size;
            this.Label42.TabIndex = 0x88;
            this.Label42.Text = "Số tiền";
            this.Label42.TextAlign = ContentAlignment.TopRight;
            this.CboPhanBo.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboPhanBo.FormattingEnabled = true;
            point = new Point(0x7b, 40);
            this.CboPhanBo.Location = point;
            this.CboPhanBo.Name = "CboPhanBo";
            size = new Size(0xa6, 0x15);
            this.CboPhanBo.Size = size;
            this.CboPhanBo.TabIndex = 1;
            this.TxtChiPhiPhanBo.BorderStyle = BorderStyle.FixedSingle;
            this.TxtChiPhiPhanBo.FormatType = FormatTypeEnum.StandardNumber;
            point = new Point(12, 40);
            this.TxtChiPhiPhanBo.Location = point;
            this.TxtChiPhiPhanBo.Name = "TxtChiPhiPhanBo";
            padding = new Padding(1);
            this.TxtChiPhiPhanBo.Padding = padding;
            this.TxtChiPhiPhanBo.ReadOnly = true;
            size = new Size(0x69, 20);
            this.TxtChiPhiPhanBo.Size = size;
            this.TxtChiPhiPhanBo.TabIndex = 0;
            this.TxtChiPhiPhanBo.Tag = null;
            this.TxtChiPhiPhanBo.TextAlign = HorizontalAlignment.Right;
            this.TxtChiPhiPhanBo.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtChiPhiPhanBo.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtChiPhiPhanBo.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.CKPhanBoPhi.AutoSize = true;
            this.CKPhanBoPhi.BackColor = Color.Transparent;
            point = new Point(12, 0);
            this.CKPhanBoPhi.Location = point;
            this.CKPhanBoPhi.Name = "CKPhanBoPhi";
            size = new Size(0xd1, 0x11);
            this.CKPhanBoPhi.Size = size;
            this.CKPhanBoPhi.TabIndex = 0x3a;
            this.CKPhanBoPhi.Text = "Ph\x00e2n bổ chi ph\x00ed phải trả nh\x00e0 cung cấp";
            this.CKPhanBoPhi.UseVisualStyleBackColor = false;
            this.CmdCopy.BackColor = Color.Transparent;
            this.CmdCopy.Image = (Image) manager.GetObject("CmdCopy.Image");
            this.CmdCopy.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0xb9, 1);
            this.CmdCopy.Location = point;
            this.CmdCopy.Name = "CmdCopy";
            size = new Size(0x5b, 0x18);
            this.CmdCopy.Size = size;
            this.CmdCopy.TabIndex = 2;
            this.CmdCopy.Text = "&3.Copy d\x00f2ng";
            this.CmdCopy.TextImageRelation = TextImageRelation.ImageBeforeText;
            this.CmdCopy.UseVisualStyleBackColor = false;
            this.CmdCopy.Visible = false;
            this.CmdDelRow.Image = (Image) manager.GetObject("CmdDelRow.Image");
            this.CmdDelRow.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0x62, 1);
            this.CmdDelRow.Location = point;
            this.CmdDelRow.Name = "CmdDelRow";
            size = new Size(0x55, 0x18);
            this.CmdDelRow.Size = size;
            this.CmdDelRow.TabIndex = 1;
            this.CmdDelRow.Text = "&2.X\x00f3a d\x00f2ng";
            this.CmdDelRow.TextImageRelation = TextImageRelation.ImageBeforeText;
            this.CmdDelRow.UseVisualStyleBackColor = true;
            this.CmdAddRow.Image = (Image) manager.GetObject("CmdAddRow.Image");
            this.CmdAddRow.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(3, 1);
            this.CmdAddRow.Location = point;
            this.CmdAddRow.Name = "CmdAddRow";
            size = new Size(0x5d, 0x18);
            this.CmdAddRow.Size = size;
            this.CmdAddRow.TabIndex = 0;
            this.CmdAddRow.Text = "&1.Th\x00eam d\x00f2ng";
            this.CmdAddRow.TextImageRelation = TextImageRelation.ImageBeforeText;
            this.CmdAddRow.UseVisualStyleBackColor = true;
            this.Label25.AutoSize = true;
            point = new Point(0xef, 0x4d);
            this.Label25.Location = point;
            this.Label25.Name = "Label25";
            size = new Size(0x20, 13);
            this.Label25.Size = size;
            this.Label25.TabIndex = 0x76;
            this.Label25.Text = "Ng\x00e0y";
            this.DateTimePicker2.Format = DateTimePickerFormat.Custom;
            point = new Point(0x124, 0x4a);
            this.DateTimePicker2.Location = point;
            this.DateTimePicker2.Name = "DateTimePicker2";
            size = new Size(0x63, 20);
            this.DateTimePicker2.Size = size;
            this.DateTimePicker2.TabIndex = 0x74;
            this.Label26.AutoSize = true;
            point = new Point(9, 0x4d);
            this.Label26.Location = point;
            this.Label26.Name = "Label26";
            size = new Size(0x37, 13);
            this.Label26.Size = size;
            this.Label26.TabIndex = 0x75;
            this.Label26.Text = "Số tờ khai";
            point = new Point(0, 0);
            this.TextBox2.Location = point;
            this.TextBox2.Name = "TextBox2";
            size = new Size(0x6c, 20);
            this.TextBox2.Size = size;
            this.TextBox2.TabIndex = 0x73;
            this.Label27.AutoSize = true;
            point = new Point(0x18e, 100);
            this.Label27.Location = point;
            this.Label27.Name = "Label27";
            size = new Size(0x4f, 13);
            this.Label27.Size = size;
            this.Label27.TabIndex = 0x72;
            this.Label27.Text = "T\x00e0i khoản thuế";
            this.Label28.AutoEllipsis = true;
            this.Label28.AutoSize = true;
            point = new Point(9, 100);
            this.Label28.Location = point;
            this.Label28.Name = "Label28";
            this.Label28.RightToLeft = RightToLeft.No;
            size = new Size(0x4b, 13);
            this.Label28.Size = size;
            this.Label28.TabIndex = 0x70;
            this.Label28.Text = "Nh\x00e0 cung cấp";
            this.Label28.TextAlign = ContentAlignment.TopRight;
            this.Label29.AutoSize = true;
            point = new Point(0x25d, 0x36);
            this.Label29.Location = point;
            this.Label29.Name = "Label29";
            size = new Size(0x37, 13);
            this.Label29.Size = size;
            this.Label29.TabIndex = 110;
            this.Label29.Text = "Thuế suất";
            this.Label29.TextAlign = ContentAlignment.TopRight;
            this.Label30.AutoSize = true;
            point = new Point(0x18e, 0x36);
            this.Label30.Location = point;
            this.Label30.Name = "Label30";
            size = new Size(0x27, 13);
            this.Label30.Size = size;
            this.Label30.TabIndex = 0x6c;
            this.Label30.Text = "Số seri";
            point = new Point(0x1e3, 0x33);
            this.TextBox3.Location = point;
            this.TextBox3.Name = "TextBox3";
            size = new Size(0x6c, 20);
            this.TextBox3.Size = size;
            this.TextBox3.TabIndex = 9;
            this.Label31.AutoSize = true;
            point = new Point(0x25d, 0x1f);
            this.Label31.Location = point;
            this.Label31.Name = "Label31";
            size = new Size(0x20, 13);
            this.Label31.Size = size;
            this.Label31.TabIndex = 0x6a;
            this.Label31.Text = "Ng\x00e0y";
            this.DateTimePicker3.Format = DateTimePickerFormat.Custom;
            point = new Point(690, 0x1c);
            this.DateTimePicker3.Location = point;
            this.DateTimePicker3.Name = "DateTimePicker3";
            size = new Size(90, 20);
            this.DateTimePicker3.Size = size;
            this.DateTimePicker3.TabIndex = 8;
            this.Label32.AutoSize = true;
            point = new Point(0x18e, 0x1f);
            this.Label32.Location = point;
            this.Label32.Name = "Label32";
            size = new Size(0x3f, 13);
            this.Label32.Size = size;
            this.Label32.TabIndex = 0x68;
            this.Label32.Text = "Số h\x00f3a đơn";
            point = new Point(0x1e3, 0x1c);
            this.TextBox4.Location = point;
            this.TextBox4.Name = "TextBox4";
            size = new Size(0x6c, 20);
            this.TextBox4.Size = size;
            this.TextBox4.TabIndex = 7;
            this.ComboBox1.DropDownStyle = ComboBoxStyle.DropDownList;
            this.ComboBox1.FormattingEnabled = true;
            point = new Point(0x1e3, 4);
            this.ComboBox1.Location = point;
            this.ComboBox1.Name = "ComboBox1";
            size = new Size(0x129, 0x15);
            this.ComboBox1.Size = size;
            this.ComboBox1.TabIndex = 6;
            this.Label33.AutoSize = true;
            point = new Point(0x18e, 8);
            this.Label33.Location = point;
            this.Label33.Name = "Label33";
            size = new Size(70, 13);
            this.Label33.Size = size;
            this.Label33.TabIndex = 0x65;
            this.Label33.Text = "Loại h\x00f3a đơn";
            this.Label33.TextAlign = ContentAlignment.TopRight;
            this.Label34.AutoSize = true;
            point = new Point(0xef, 8);
            this.Label34.Location = point;
            this.Label34.Name = "Label34";
            size = new Size(0x20, 13);
            this.Label34.Size = size;
            this.Label34.TabIndex = 0x63;
            this.Label34.Text = "Ng\x00e0y";
            this.DateTimePicker4.Enabled = false;
            this.DateTimePicker4.Format = DateTimePickerFormat.Custom;
            point = new Point(0x124, 5);
            this.DateTimePicker4.Location = point;
            this.DateTimePicker4.Name = "DateTimePicker4";
            size = new Size(0x63, 20);
            this.DateTimePicker4.Size = size;
            this.DateTimePicker4.TabIndex = 0x62;
            this.Label35.AutoSize = true;
            point = new Point(9, 8);
            this.Label35.Location = point;
            this.Label35.Name = "Label35";
            size = new Size(0x44, 13);
            this.Label35.Size = size;
            this.Label35.TabIndex = 0x61;
            this.Label35.Text = "Đơn h\x00e0ng số";
            point = new Point(0x65, 5);
            this.TextBox5.Location = point;
            this.TextBox5.Name = "TextBox5";
            this.TextBox5.ReadOnly = true;
            size = new Size(0x55, 20);
            this.TextBox5.Size = size;
            this.TextBox5.TabIndex = 0x60;
            point = new Point(0x65, 0x79);
            this.TextBox6.Location = point;
            this.TextBox6.Name = "TextBox6";
            size = new Size(0x2a7, 20);
            this.TextBox6.Size = size;
            this.TextBox6.TabIndex = 13;
            this.Label36.AutoEllipsis = true;
            this.Label36.AutoSize = true;
            point = new Point(9, 0x7c);
            this.Label36.Location = point;
            this.Label36.Name = "Label36";
            this.Label36.RightToLeft = RightToLeft.No;
            size = new Size(0x30, 13);
            this.Label36.Size = size;
            this.Label36.TabIndex = 0x5f;
            this.Label36.Text = "Diễn giải";
            this.Label36.TextAlign = ContentAlignment.TopRight;
            this.ComboBox2.DropDownStyle = ComboBoxStyle.DropDownList;
            this.ComboBox2.FormattingEnabled = true;
            point = new Point(0x65, 0x33);
            this.ComboBox2.Location = point;
            this.ComboBox2.Name = "ComboBox2";
            size = new Size(0x6c, 0x15);
            this.ComboBox2.Size = size;
            this.ComboBox2.TabIndex = 2;
            this.Label37.AutoSize = true;
            point = new Point(9, 0x36);
            this.Label37.Location = point;
            this.Label37.Name = "Label37";
            size = new Size(0x38, 13);
            this.Label37.Size = size;
            this.Label37.TabIndex = 0x39;
            this.Label37.Text = "Nguy\x00ean t\x00eạ";
            this.Label37.TextAlign = ContentAlignment.TopRight;
            this.Label38.AutoSize = true;
            point = new Point(0xeb, 0x36);
            this.Label38.Location = point;
            this.Label38.Name = "Label38";
            size = new Size(0x24, 13);
            this.Label38.Size = size;
            this.Label38.TabIndex = 0x38;
            this.Label38.Text = "Tỷ giá";
            this.Label38.TextAlign = ContentAlignment.TopRight;
            this.Label39.AutoSize = true;
            point = new Point(0x18e, 0x4e);
            this.Label39.Location = point;
            this.Label39.Name = "Label39";
            size = new Size(70, 13);
            this.Label39.Size = size;
            this.Label39.TabIndex = 0x25;
            this.Label39.Text = "T\x00e0i khoản c\x00f3";
            this.Label40.AutoSize = true;
            point = new Point(0xef, 0x1f);
            this.Label40.Location = point;
            this.Label40.Name = "Label40";
            size = new Size(0x20, 13);
            this.Label40.Size = size;
            this.Label40.TabIndex = 0x23;
            this.Label40.Text = "Ng\x00e0y";
            this.DateTimePicker5.Format = DateTimePickerFormat.Custom;
            point = new Point(0x124, 0x1c);
            this.DateTimePicker5.Location = point;
            this.DateTimePicker5.Name = "DateTimePicker5";
            size = new Size(0x63, 20);
            this.DateTimePicker5.Size = size;
            this.DateTimePicker5.TabIndex = 1;
            this.Label41.AutoSize = true;
            point = new Point(9, 0x1f);
            this.Label41.Location = point;
            this.Label41.Name = "Label41";
            size = new Size(0x41, 13);
            this.Label41.Size = size;
            this.Label41.TabIndex = 0x21;
            this.Label41.Text = "Số chứng từ";
            point = new Point(0x65, 0x1c);
            this.TextBox7.Location = point;
            this.TextBox7.Name = "TextBox7";
            size = new Size(0x6c, 20);
            this.TextBox7.Size = size;
            this.TextBox7.TabIndex = 0;
            this.C1DockingTab2.Controls.Add(this.C1DockingTabPage1);
            this.C1DockingTab2.Controls.Add(this.C1DockingTabPage2);
            this.C1DockingTab2.Dock = DockStyle.Top;
            point = new Point(0, 0x19);
            this.C1DockingTab2.Location = point;
            this.C1DockingTab2.Name = "C1DockingTab2";
            size = new Size(0x3e2, 220);
            this.C1DockingTab2.Size = size;
            this.C1DockingTab2.TabIndex = 0;
            this.C1DockingTab2.TabsSpacing = 5;
            this.C1DockingTab2.TabStyle = TabStyleEnum.Office2007;
            this.C1DockingTab2.VisualStyle = C1.Win.C1Command.VisualStyle.Custom;
            this.C1DockingTab2.VisualStyleBase = C1.Win.C1Command.VisualStyle.Office2007Blue;
            this.C1DockingTabPage1.Controls.Add(this.Label46);
            this.C1DockingTabPage1.Controls.Add(this.TxtSoHopDong);
            this.C1DockingTabPage1.Controls.Add(this.TxtHanThanhToan);
            this.C1DockingTabPage1.Controls.Add(this.TxtSoChungTu);
            this.C1DockingTabPage1.Controls.Add(this.Label24);
            this.C1DockingTabPage1.Controls.Add(this.Label1);
            this.C1DockingTabPage1.Controls.Add(this.TxtNgayToiHanThanhToan);
            this.C1DockingTabPage1.Controls.Add(this.TxtNgayChungTu);
            this.C1DockingTabPage1.Controls.Add(this.TxtHanNopThue);
            this.C1DockingTabPage1.Controls.Add(this.Label13);
            this.C1DockingTabPage1.Controls.Add(this.Label44);
            this.C1DockingTabPage1.Controls.Add(this.Label10);
            this.C1DockingTabPage1.Controls.Add(this.TxtNgayNopThue);
            this.C1DockingTabPage1.Controls.Add(this.Label11);
            this.C1DockingTabPage1.Controls.Add(this.Label58);
            this.C1DockingTabPage1.Controls.Add(this.txtTyGia);
            this.C1DockingTabPage1.Controls.Add(this.TxtNgayHoaDonNK);
            this.C1DockingTabPage1.Controls.Add(this.CboLoaiTien);
            this.C1DockingTabPage1.Controls.Add(this.Label43);
            this.C1DockingTabPage1.Controls.Add(this.TxtSoHoaDonThueNK);
            this.C1DockingTabPage1.Controls.Add(this.Label62);
            this.C1DockingTabPage1.Controls.Add(this.Label20);
            this.C1DockingTabPage1.Controls.Add(this.Label16);
            this.C1DockingTabPage1.Controls.Add(this.TxtSoToKhai);
            this.C1DockingTabPage1.Controls.Add(this.Label18);
            this.C1DockingTabPage1.Controls.Add(this.Label17);
            this.C1DockingTabPage1.Controls.Add(this.Label2);
            this.C1DockingTabPage1.Controls.Add(this.GroupBox1);
            this.C1DockingTabPage1.Controls.Add(this.Label9);
            this.C1DockingTabPage1.Controls.Add(this.TxtDienGiai);
            this.C1DockingTabPage1.Controls.Add(this.AdvTaiKhoanCoThueGTGT);
            this.C1DockingTabPage1.Controls.Add(this.AdvNhaCungCap);
            this.C1DockingTabPage1.Controls.Add(this.AdvTaiKhoanNoThueGTGT);
            this.C1DockingTabPage1.Controls.Add(this.AdvTKThueNhapKhau);
            this.C1DockingTabPage1.Controls.Add(this.AdvTaiKhoanCo);
            this.C1DockingTabPage1.Image = ACCOUNTING.My.Resources.Resources.Selected;
            point = new Point(1, 0x19);
            this.C1DockingTabPage1.Location = point;
            this.C1DockingTabPage1.Name = "C1DockingTabPage1";
            size = new Size(0x3e0, 0xc2);
            this.C1DockingTabPage1.Size = size;
            this.C1DockingTabPage1.TabIndex = 0;
            this.C1DockingTabPage1.Text = "Th\x00f4ng tin phiếu nhập kho";
            this.C1DockingTabPage2.Controls.Add(this.TxtDienGiaiPhiNK);
            this.C1DockingTabPage2.Controls.Add(this.Label56);
            this.C1DockingTabPage2.Controls.Add(this.Label66);
            this.C1DockingTabPage2.Controls.Add(this.CboLoaiTienCP);
            this.C1DockingTabPage2.Controls.Add(this.TxtTyGiaCP);
            this.C1DockingTabPage2.Controls.Add(this.Label61);
            this.C1DockingTabPage2.Controls.Add(this.Label57);
            this.C1DockingTabPage2.Controls.Add(this.Label63);
            this.C1DockingTabPage2.Controls.Add(this.Label53);
            this.C1DockingTabPage2.Controls.Add(this.TxtTienThuePhi);
            this.C1DockingTabPage2.Controls.Add(this.TxtTienPhiCPNT);
            this.C1DockingTabPage2.Controls.Add(this.Label59);
            this.C1DockingTabPage2.Controls.Add(this.Label52);
            this.C1DockingTabPage2.Controls.Add(this.TxtTienThuePhiNT);
            this.C1DockingTabPage2.Controls.Add(this.CboPhanBoCP);
            this.C1DockingTabPage2.Controls.Add(this.Label60);
            this.C1DockingTabPage2.Controls.Add(this.Label51);
            this.C1DockingTabPage2.Controls.Add(this.Label55);
            this.C1DockingTabPage2.Controls.Add(this.CboLoaiHoaDonCP);
            this.C1DockingTabPage2.Controls.Add(this.TxtTienPhiCP);
            this.C1DockingTabPage2.Controls.Add(this.TxtSoHoaDonCP);
            this.C1DockingTabPage2.Controls.Add(this.Label54);
            this.C1DockingTabPage2.Controls.Add(this.Label50);
            this.C1DockingTabPage2.Controls.Add(this.TxtThueSuatCP);
            this.C1DockingTabPage2.Controls.Add(this.TxtNgayHoaDonCP);
            this.C1DockingTabPage2.Controls.Add(this.Label47);
            this.C1DockingTabPage2.Controls.Add(this.Label49);
            this.C1DockingTabPage2.Controls.Add(this.Label48);
            this.C1DockingTabPage2.Controls.Add(this.TxtSoSeriCP);
            this.C1DockingTabPage2.Controls.Add(this.AdvNhaCungCapPhiNK);
            this.C1DockingTabPage2.Controls.Add(this.AdvTKThanhToan);
            this.C1DockingTabPage2.Controls.Add(this.AdvTKThue);
            this.C1DockingTabPage2.Image = ACCOUNTING.My.Resources.Resources.Selected;
            point = new Point(1, 0x19);
            this.C1DockingTabPage2.Location = point;
            this.C1DockingTabPage2.Name = "C1DockingTabPage2";
            size = new Size(0x3e0, 0xc2);
            this.C1DockingTabPage2.Size = size;
            this.C1DockingTabPage2.TabIndex = 1;
            this.C1DockingTabPage2.Text = "Chi ph\x00ed nhập khẩu";
            this.C1DockingTab1.Controls.Add(this.C1DockingTabPage3);
            this.C1DockingTab1.Dock = DockStyle.Fill;
            point = new Point(0, 0xf5);
            this.C1DockingTab1.Location = point;
            this.C1DockingTab1.Name = "C1DockingTab1";
            this.C1DockingTab1.SelectedIndex = 1;
            size = new Size(0x3e2, 0x13e);
            this.C1DockingTab1.Size = size;
            this.C1DockingTab1.TabIndex = 3;
            this.C1DockingTab1.TabsSpacing = 5;
            this.C1DockingTab1.TabStyle = TabStyleEnum.Office2007;
            this.C1DockingTab1.VisualStyle = C1.Win.C1Command.VisualStyle.Custom;
            this.C1DockingTab1.VisualStyleBase = C1.Win.C1Command.VisualStyle.Office2007Blue;
            this.C1DockingTabPage3.Controls.Add(this.VSlist);
            this.C1DockingTabPage3.Controls.Add(this.Label6);
            this.C1DockingTabPage3.Controls.Add(this.Label4);
            this.C1DockingTabPage3.Controls.Add(this.CmdTimDonHang);
            this.C1DockingTabPage3.Controls.Add(this.TxtNgayDathang);
            this.C1DockingTabPage3.Controls.Add(this.TxtSoDonHang);
            this.C1DockingTabPage3.Image = ACCOUNTING.My.Resources.Resources.Selected;
            point = new Point(1, 0x19);
            this.C1DockingTabPage3.Location = point;
            this.C1DockingTabPage3.Name = "C1DockingTabPage3";
            size = new Size(0x3e0, 0x124);
            this.C1DockingTabPage3.Size = size;
            this.C1DockingTabPage3.TabIndex = 0;
            this.C1DockingTabPage3.Text = "Chi tiết h\x00e0ng h\x00f3a";
            this.AdvTaiKhoanCoThueGTGT.Conditions = "";
            this.AdvTaiKhoanCoThueGTGT.DefaultValue = "";
            this.AdvTaiKhoanCoThueGTGT.FieldNameFilter = "";
            this.AdvTaiKhoanCoThueGTGT.KeyFilter = "";
            point = new Point(0x232, 0x8e);
            this.AdvTaiKhoanCoThueGTGT.Location = point;
            padding = new Padding(0);
            this.AdvTaiKhoanCoThueGTGT.Margin = padding;
            this.AdvTaiKhoanCoThueGTGT.Name = "AdvTaiKhoanCoThueGTGT";
            this.AdvTaiKhoanCoThueGTGT.OnlyDigit = false;
            this.AdvTaiKhoanCoThueGTGT.ReadOnly = false;
            size = new Size(350, 20);
            this.AdvTaiKhoanCoThueGTGT.Size = size;
            this.AdvTaiKhoanCoThueGTGT.TabIndex = 0x12;
            this.AdvTaiKhoanCoThueGTGT.UpperText = true;
            this.AdvTaiKhoanCoThueGTGT.Value = "";
            this.AdvTaiKhoanCoThueGTGT.WithCode = 80;
            this.AdvNhaCungCap.Conditions = "";
            this.AdvNhaCungCap.LoaiDoiTuong = modGeneral.TypeObjects.NhaCungCap;
            point = new Point(0x73, 0x6c);
            this.AdvNhaCungCap.Location = point;
            this.AdvNhaCungCap.Name = "AdvNhaCungCap";
            this.AdvNhaCungCap.ReadOnly = false;
            size = new Size(0x13d, 20);
            this.AdvNhaCungCap.Size = size;
            this.AdvNhaCungCap.TabIndex = 10;
            this.AdvNhaCungCap.UpperText = true;
            this.AdvNhaCungCap.Value = "";
            this.AdvNhaCungCap.WidthCode = 80;
            this.AdvTaiKhoanNoThueGTGT.Conditions = "";
            this.AdvTaiKhoanNoThueGTGT.DefaultValue = "";
            this.AdvTaiKhoanNoThueGTGT.FieldNameFilter = "";
            this.AdvTaiKhoanNoThueGTGT.KeyFilter = "";
            point = new Point(0x232, 120);
            this.AdvTaiKhoanNoThueGTGT.Location = point;
            padding = new Padding(0);
            this.AdvTaiKhoanNoThueGTGT.Margin = padding;
            this.AdvTaiKhoanNoThueGTGT.Name = "AdvTaiKhoanNoThueGTGT";
            this.AdvTaiKhoanNoThueGTGT.OnlyDigit = false;
            this.AdvTaiKhoanNoThueGTGT.ReadOnly = false;
            size = new Size(350, 20);
            this.AdvTaiKhoanNoThueGTGT.Size = size;
            this.AdvTaiKhoanNoThueGTGT.TabIndex = 0x11;
            this.AdvTaiKhoanNoThueGTGT.UpperText = true;
            this.AdvTaiKhoanNoThueGTGT.Value = "";
            this.AdvTaiKhoanNoThueGTGT.WithCode = 80;
            this.AdvTKThueNhapKhau.Conditions = "";
            this.AdvTKThueNhapKhau.DefaultValue = "";
            this.AdvTKThueNhapKhau.FieldNameFilter = "";
            this.AdvTKThueNhapKhau.KeyFilter = "";
            point = new Point(0x232, 0x62);
            this.AdvTKThueNhapKhau.Location = point;
            padding = new Padding(0);
            this.AdvTKThueNhapKhau.Margin = padding;
            this.AdvTKThueNhapKhau.Name = "AdvTKThueNhapKhau";
            this.AdvTKThueNhapKhau.OnlyDigit = false;
            this.AdvTKThueNhapKhau.ReadOnly = false;
            size = new Size(350, 20);
            this.AdvTKThueNhapKhau.Size = size;
            this.AdvTKThueNhapKhau.TabIndex = 0x10;
            this.AdvTKThueNhapKhau.UpperText = true;
            this.AdvTKThueNhapKhau.Value = "";
            this.AdvTKThueNhapKhau.WithCode = 80;
            this.AdvTaiKhoanCo.Conditions = "";
            this.AdvTaiKhoanCo.DefaultValue = "";
            this.AdvTaiKhoanCo.FieldNameFilter = "";
            this.AdvTaiKhoanCo.KeyFilter = "";
            point = new Point(0x232, 0x4c);
            this.AdvTaiKhoanCo.Location = point;
            padding = new Padding(0);
            this.AdvTaiKhoanCo.Margin = padding;
            this.AdvTaiKhoanCo.Name = "AdvTaiKhoanCo";
            this.AdvTaiKhoanCo.OnlyDigit = false;
            this.AdvTaiKhoanCo.ReadOnly = false;
            size = new Size(350, 20);
            this.AdvTaiKhoanCo.Size = size;
            this.AdvTaiKhoanCo.TabIndex = 15;
            this.AdvTaiKhoanCo.UpperText = true;
            this.AdvTaiKhoanCo.Value = "";
            this.AdvTaiKhoanCo.WithCode = 80;
            this.AdvNhaCungCapPhiNK.Conditions = "";
            this.AdvNhaCungCapPhiNK.LoaiDoiTuong = modGeneral.TypeObjects.NhaCungCap;
            point = new Point(0x70, 0x3b);
            this.AdvNhaCungCapPhiNK.Location = point;
            this.AdvNhaCungCapPhiNK.Name = "AdvNhaCungCapPhiNK";
            this.AdvNhaCungCapPhiNK.ReadOnly = false;
            size = new Size(0x160, 20);
            this.AdvNhaCungCapPhiNK.Size = size;
            this.AdvNhaCungCapPhiNK.TabIndex = 5;
            this.AdvNhaCungCapPhiNK.UpperText = true;
            this.AdvNhaCungCapPhiNK.Value = "";
            this.AdvNhaCungCapPhiNK.WidthCode = 80;
            this.AdvTKThanhToan.Conditions = "";
            this.AdvTKThanhToan.DefaultValue = "331";
            this.AdvTKThanhToan.FieldNameFilter = "Left(SoTaiKhoan,3)";
            this.AdvTKThanhToan.KeyFilter = "111|331|142";
            point = new Point(0x70, 13);
            this.AdvTKThanhToan.Location = point;
            padding = new Padding(0);
            this.AdvTKThanhToan.Margin = padding;
            this.AdvTKThanhToan.Name = "AdvTKThanhToan";
            this.AdvTKThanhToan.OnlyDigit = false;
            this.AdvTKThanhToan.ReadOnly = false;
            size = new Size(0x160, 20);
            this.AdvTKThanhToan.Size = size;
            this.AdvTKThanhToan.TabIndex = 0;
            this.AdvTKThanhToan.UpperText = true;
            this.AdvTKThanhToan.Value = "";
            this.AdvTKThanhToan.WithCode = 80;
            this.AdvTKThue.Conditions = "";
            this.AdvTKThue.DefaultValue = "133";
            this.AdvTKThue.Enabled = false;
            this.AdvTKThue.FieldNameFilter = "Left(SoTaiKhoan,3)";
            this.AdvTKThue.KeyFilter = "133";
            point = new Point(0x70, 0x24);
            this.AdvTKThue.Location = point;
            padding = new Padding(0);
            this.AdvTKThue.Margin = padding;
            this.AdvTKThue.Name = "AdvTKThue";
            this.AdvTKThue.OnlyDigit = false;
            this.AdvTKThue.ReadOnly = false;
            size = new Size(0x160, 20);
            this.AdvTKThue.Size = size;
            this.AdvTKThue.TabIndex = 3;
            this.AdvTKThue.UpperText = true;
            this.AdvTKThue.Value = "";
            this.AdvTKThue.WithCode = 80;
            this.AdvAccount2.Conditions = "";
            this.AdvAccount2.DefaultValue = "";
            this.AdvAccount2.FieldNameFilter = "Left(SoTaiKhoan,3)";
            this.AdvAccount2.KeyFilter = "133|333";
            point = new Point(0x1e3, 0x61);
            this.AdvAccount2.Location = point;
            padding = new Padding(0);
            this.AdvAccount2.Margin = padding;
            this.AdvAccount2.Name = "AdvAccount2";
            this.AdvAccount2.OnlyDigit = false;
            this.AdvAccount2.ReadOnly = false;
            size = new Size(0x12b, 20);
            this.AdvAccount2.Size = size;
            this.AdvAccount2.TabIndex = 12;
            this.AdvAccount2.UpperText = true;
            this.AdvAccount2.Value = "";
            this.AdvAccount2.WithCode = 80;
            this.AdvObjects2.Conditions = "";
            this.AdvObjects2.LoaiDoiTuong = modGeneral.TypeObjects.NhaCungCap;
            point = new Point(0x65, 0x61);
            this.AdvObjects2.Location = point;
            this.AdvObjects2.Name = "AdvObjects2";
            this.AdvObjects2.ReadOnly = false;
            size = new Size(0x123, 20);
            this.AdvObjects2.Size = size;
            this.AdvObjects2.TabIndex = 4;
            this.AdvObjects2.UpperText = true;
            this.AdvObjects2.Value = "";
            this.AdvObjects2.WidthCode = 80;
            this.AdvAccount3.Conditions = "";
            this.AdvAccount3.DefaultValue = "";
            this.AdvAccount3.FieldNameFilter = "Left(SoTaiKhoan,3)";
            this.AdvAccount3.KeyFilter = "111|112|331";
            point = new Point(0x1e3, 0x4a);
            this.AdvAccount3.Location = point;
            padding = new Padding(0);
            this.AdvAccount3.Margin = padding;
            this.AdvAccount3.Name = "AdvAccount3";
            this.AdvAccount3.OnlyDigit = false;
            this.AdvAccount3.ReadOnly = false;
            size = new Size(0x12b, 20);
            this.AdvAccount3.Size = size;
            this.AdvAccount3.TabIndex = 11;
            this.AdvAccount3.UpperText = true;
            this.AdvAccount3.Value = "";
            this.AdvAccount3.WithCode = 80;
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            size = new Size(0x3e2, 0x29c);
            this.ClientSize = size;
            this.ControlBox = false;
            this.Controls.Add(this.C1DockingTab1);
            this.Controls.Add(this.C1DockingTab2);
            this.Controls.Add(this.ToolStrip1);
            this.Controls.Add(this.Panel4);
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.KeyPreview = true;
            this.Name = "Frm_NhapKhau";
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Tag = "NV-0007";
            this.Text = "MUA HANG NHAP KHAU";
            ((ISupportInitialize) this.TxtTongTienThueNT).EndInit();
            ((ISupportInitialize) this.TxtTongTienHangNT).EndInit();
            ((ISupportInitialize) this.TxtTongTienThueNhapKhauNT).EndInit();
            ((ISupportInitialize) this.TxtTongTienThue).EndInit();
            ((ISupportInitialize) this.TxtTongTienHang).EndInit();
            ((ISupportInitialize) this.TxtTongTienThueNhapKhau).EndInit();
            ((ISupportInitialize) this.TxtTongThanhToan).EndInit();
            ((ISupportInitialize) this.TxtTongThanhToanNT).EndInit();
            this.VSlist.EndInit();
            this.Panel5.ResumeLayout(false);
            this.Panel5.PerformLayout();
            ((ISupportInitialize) this.TxtTongCong).EndInit();
            ((ISupportInitialize) this.TxtCongPhiNT).EndInit();
            ((ISupportInitialize) this.TxtCongPhi).EndInit();
            ((ISupportInitialize) this.TxtTongThuePhiNKNT).EndInit();
            ((ISupportInitialize) this.TxtTongThuePhiNK).EndInit();
            ((ISupportInitialize) this.TxtTongTienPhiNKNT).EndInit();
            ((ISupportInitialize) this.TxtTongTienPhiNK).EndInit();
            ((ISupportInitialize) this.TxtTongTienPhiNT).EndInit();
            ((ISupportInitialize) this.TxtTongTienPhi).EndInit();
            ((ISupportInitialize) this.TxtHanThanhToan).EndInit();
            ((ISupportInitialize) this.TxtHanNopThue).EndInit();
            this.GroupBox1.ResumeLayout(false);
            this.GroupBox1.PerformLayout();
            ((ISupportInitialize) this.TxtThueSuat).EndInit();
            ((ISupportInitialize) this.txtTyGia).EndInit();
            ((ISupportInitialize) this.TxtTyGiaCP).EndInit();
            ((ISupportInitialize) this.TxtTienThuePhi).EndInit();
            ((ISupportInitialize) this.TxtTienThuePhiNT).EndInit();
            ((ISupportInitialize) this.TxtTienPhiCP).EndInit();
            ((ISupportInitialize) this.TxtThueSuatCP).EndInit();
            ((ISupportInitialize) this.TxtTienPhiCPNT).EndInit();
            this.ToolStrip1.ResumeLayout(false);
            this.ToolStrip1.PerformLayout();
            this.Panel4.ResumeLayout(false);
            ((ISupportInitialize) this.TxtSoLuong).EndInit();
            this.GroupBox2.ResumeLayout(false);
            this.GroupBox2.PerformLayout();
            ((ISupportInitialize) this.TxtChiPhiPhanBo).EndInit();
            ((ISupportInitialize) this.C1DockingTab2).EndInit();
            this.C1DockingTab2.ResumeLayout(false);
            this.C1DockingTabPage1.ResumeLayout(false);
            this.C1DockingTabPage1.PerformLayout();
            this.C1DockingTabPage2.ResumeLayout(false);
            this.C1DockingTabPage2.PerformLayout();
            ((ISupportInitialize) this.C1DockingTab1).EndInit();
            this.C1DockingTab1.ResumeLayout(false);
            this.C1DockingTabPage3.ResumeLayout(false);
            this.C1DockingTabPage3.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();
        }

        public void InsertDonHang(string strKhoa)
        {
            clsDonDatHang hang = new clsDonDatHang();
            hang.Load(strKhoa);
            this.TxtSoDonHang.Tag = hang.Khoa;
            this.TxtSoDonHang.Text = hang.SoChungTu;
            this.TxtNgayDathang.Text = LVYModule.Char2Date(hang.NgayChungTu);
            this.AdvNhaCungCap.Value = hang.KhoaDoiTuong;
            this.CboLoaiTien.SelectedValue = hang.LoaiTien;
            this.txtTyGia.Value = hang.TyGia;
            DataTable details = hang.GetDetails(hang.Khoa);
            if (details != null)
            {
                clsDMHangHoa hoa = new clsDMHangHoa();
                C1.Win.C1FlexGrid.C1FlexGrid vSlist = this.VSlist;
                int num3 = details.Rows.Count - 1;
                for (int i = 0; i <= num3; i++)
                {
                    double right = Conversions.ToDouble(Microsoft.VisualBasic.CompilerServices.Operators.SubtractObject(details.Rows[i]["SoLuong"], details.Rows[i]["SoLuongCungCap"]));
                    if (right > 0.0)
                    {
                        vSlist.AddItem("");
                        vSlist[vSlist.Rows.Count - 1, 3] = RuntimeHelpers.GetObjectValue(details.Rows[i]["KhoaHangHoa"]);
                        vSlist[vSlist.Rows.Count - 1, 4] = RuntimeHelpers.GetObjectValue(details.Rows[i]["MaHang"]);
                        vSlist[vSlist.Rows.Count - 1, 5] = RuntimeHelpers.GetObjectValue(details.Rows[i]["HangHoa"]);
                        vSlist[vSlist.Rows.Count - 1, 10] = RuntimeHelpers.GetObjectValue(details.Rows[i]["KhoaDonViTinh"]);
                        vSlist[vSlist.Rows.Count - 1, 11] = RuntimeHelpers.GetObjectValue(details.Rows[i]["DonViTinh"]);
                        vSlist[vSlist.Rows.Count - 1, 12] = RuntimeHelpers.GetObjectValue(details.Rows[i]["QuyCach"]);
                        vSlist[vSlist.Rows.Count - 1, 13] = right;
                        vSlist[vSlist.Rows.Count - 1, 14] = RuntimeHelpers.GetObjectValue(details.Rows[i]["DonGiaNT"]);
                        vSlist[vSlist.Rows.Count - 1, 15] = Microsoft.VisualBasic.CompilerServices.Operators.MultiplyObject(details.Rows[i]["DonGiaNT"], right);
                        vSlist[vSlist.Rows.Count - 1, 0x10] = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(vSlist[vSlist.Rows.Count - 1, 15]), 0, modGeneral.TypeOfValue.Nothing)) * Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.txtTyGia.Value), 1, modGeneral.TypeOfValue.Nothing));
                        vSlist[vSlist.Rows.Count - 1, 0x19] = RuntimeHelpers.GetObjectValue(details.Rows[i]["ThueSuat"]);
                        RowColEventArgs e = new RowColEventArgs(vSlist.Rows.Count - 1, 0x19);
                        this.VSlist_AfterEdit(this.VSlist, e);
                        DataTable hangHoa = hoa.GetHangHoa(Conversions.ToString(details.Rows[i]["KhoaHangHoa"]));
                        vSlist[vSlist.Rows.Count - 1, 0x1b] = RuntimeHelpers.GetObjectValue(hangHoa.Rows[0]["KhoaTKHangHoa"]);
                        vSlist[vSlist.Rows.Count - 1, 0x1c] = RuntimeHelpers.GetObjectValue(hangHoa.Rows[0]["TaiKhoanHangHoa"]);
                    }
                }
                vSlist = null;
            }
        }

        private void Label18_Click(object sender, EventArgs e)
        {
        }

        public void MergCell()
        {
            this.VSlist.AllowMerging = AllowMergingEnum.FixedOnly;
            this.VSlist.Rows[0].AllowMerging = true;
            this.VSlist.Rows[1].AllowMerging = true;
            this.VSlist.Cols[2].AllowMerging = true;
            //this.VSlist.GetCellRange(0, 1, 1, 1).Data = modGeneral.Tranlated("Kho h\x00e0ng", "");
            this.VSlist.Cols[1].AllowMerging = true;
            //this.VSlist.GetCellRange(0, 1, 1, 1).Data = modGeneral.Tranlated("Kho h\x00e0ng", "");
            this.VSlist.Cols[4].AllowMerging = true;
            //this.VSlist.GetCellRange(0, 4, 1, 4).Data = modGeneral.Tranlated("M\x00e3 h\x00e0ng", "");
            this.VSlist.Cols[5].AllowMerging = true;
            //this.VSlist.GetCellRange(0, 6, 1, 6).Data = modGeneral.Tranlated("Số l\x00f4", "");
            this.VSlist.Cols[6].AllowMerging = true;
            //this.VSlist.GetCellRange(0, 5, 1, 5).Data = modGeneral.Tranlated("T\x00ean h\x00e0ng", "");
            this.VSlist.Cols[7].AllowMerging = true;
            //this.VSlist.GetCellRange(0, 9, 1, 9).Data = modGeneral.Tranlated("Hạn d\x00f9ng", "");
            this.VSlist.Cols[9].AllowMerging = true;
            //this.VSlist.GetCellRange(0, 7, 1, 7).Data = modGeneral.Tranlated("Số seri", "");
            this.VSlist.Cols[11].AllowMerging = true;
            //this.VSlist.GetCellRange(0, 11, 1, 11).Data = modGeneral.Tranlated("ĐVT", "");
            this.VSlist.Cols[12].AllowMerging = true;
            //this.VSlist.GetCellRange(0, 12, 1, 12).Data = modGeneral.Tranlated("Quy c\x00e1ch", "");
            this.VSlist.Cols[13].AllowMerging = true;
            //this.VSlist.GetCellRange(0, 13, 1, 13).Data = modGeneral.Tranlated("Số lượng", "");
            this.VSlist.Cols[14].AllowMerging = true;
            //this.VSlist.GetCellRange(0, 14, 1, 14).Data = modGeneral.Tranlated("Đơn gi\x00e1", "");
            //this.VSlist.GetCellRange(0, 15, 0, 0x10).Data = modGeneral.Tranlated("Th\x00e0nh tiền", "");
            this.VSlist[1, 15] = modGeneral.Tranlated("Nguy\x00ean tệ", "");
            this.VSlist[1, 0x10] = modGeneral.Tranlated("Quy đổi", "");
            this.VSlist[1, 0x11] = "Nguy\x00ean tệ";
            this.VSlist[1, 0x12] = modGeneral.Tranlated("Quy đổi", "");
            this.VSlist[1, 0x13] = "(%)";
            this.VSlist[1, 20] = modGeneral.Tranlated("Th\x00e0nh tiền", "");
            this.VSlist[1, 0x15] = "Nguy\x00ean tệ";
            this.VSlist[1, 0x16] = modGeneral.Tranlated("Quy đổi", "");
            //this.VSlist.GetCellRange(0, 0x17, 0, 0x18).Data = modGeneral.Tranlated("Thuế nhập khẩu", "");
            this.VSlist[1, 0x17] = "(%)";
            this.VSlist[1, 0x18] = modGeneral.Tranlated("Th\x00e0nh tiền", "");
            //this.VSlist.GetCellRange(0, 0x19, 0, 0x1a).Data = modGeneral.Tranlated("Thuế VAT", "");
            this.VSlist[1, 0x19] = "(%)";
            this.VSlist[1, 0x1a] = modGeneral.Tranlated("Th\x00e0nh tiền", "");
            this.VSlist.Cols[0x1c].AllowMerging = true;
            //this.VSlist.GetCellRange(0, 0x1c, 1, 0x1c).Data = modGeneral.Tranlated("TK. h\x00e0ng h\x00f3a", "");
        }

        public void PhanBoChiPhiNhapKhau()
        {
            if (this.mEnabledControl)
            {
                double num3 = 0.0;
                double pTongSo = 0.0;
                double num5 = 0.0;
                double num2 = 0.0;
                double num4 = 0.0;
                int num7 = 0;
                clsDMLoaiTien tien = new clsDMLoaiTien();
                tien.Load(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboLoaiTienCP.SelectedValue), "", modGeneral.TypeOfValue.String).ToString().Trim());
                if (!((LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboPhanBo.SelectedValue), "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "") | (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboPhanBo.SelectedValue), "", modGeneral.TypeOfValue.Nothing).ToString() == "PB")))
                {
                    num3 = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTienPhiCPNT.Value), 0, modGeneral.TypeOfValue.Nothing));
                    num4 = num3;
                    if (num3 != 0.0)
                    {
                        object obj2;
                        int num;
                        switch (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboPhanBoCP.SelectedValue), "", modGeneral.TypeOfValue.Nothing).ToString().Trim())
                        {
                            case "TG":
                                pTongSo = LVYModule.SumColGrid(this.VSlist, 15);
                                if (pTongSo != 0.0)
                                {
                                    int num8 = this.VSlist.Rows.Count - 1;
                                    for (num = 2; num <= num8; num++)
                                    {
                                        if (num < (this.VSlist.Rows.Count - 1))
                                        {
                                            num7 = (int) Math.Round(this.PhanTram(pTongSo, Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[num, 15]), 0, modGeneral.TypeOfValue.Nothing))));
                                            num2 = Math.Round((double) ((num3 * num7) / 100.0), tien.SoLe);
                                            this.VSlist[num, 0x15] = num2;
                                            this.VSlist[num, 0x16] = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[num, 0x15]), 0, modGeneral.TypeOfValue.Nothing)) * Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTyGiaCP.Value), 0, modGeneral.TypeOfValue.Nothing));
                                            num4 -= num2;
                                        }
                                        else
                                        {
                                            this.VSlist[num, 0x15] = num4;
                                            this.VSlist[num, 0x16] = Math.Round((double) (Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[num, 0x15]), 0, modGeneral.TypeOfValue.Nothing)) * Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTyGiaCP.Value), 0, modGeneral.TypeOfValue.Nothing))), 0);
                                        }
                                        obj2 = new RowColEventArgs(num, 0x15);
                                        this.VSlist_AfterEdit(this.VSlist, (RowColEventArgs) obj2);
                                    }
                                }
                                break;

                            case "SL":
                                num5 = LVYModule.SumColGrid(this.VSlist, 13);
                                if (num5 != 0.0)
                                {
                                    int num9 = this.VSlist.Rows.Count - 1;
                                    for (num = 1; num <= num9; num++)
                                    {
                                        if (num < (this.VSlist.Rows.Count - 1))
                                        {
                                            num7 = (int) Math.Round(this.PhanTram(num5, Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[num, 13]), 0, modGeneral.TypeOfValue.Nothing))));
                                            num2 = Math.Round((double) ((num3 * num7) / 100.0), tien.SoLe);
                                            this.VSlist[num, 0x15] = num2;
                                            this.VSlist[num, 0x16] = Math.Round((double) (num2 * Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTyGiaCP.Value), 0, modGeneral.TypeOfValue.Nothing))), 0);
                                            num4 -= num2;
                                        }
                                        else
                                        {
                                            this.VSlist[num, 0x15] = num4;
                                            this.VSlist[num, 0x16] = Math.Round((double) (num2 * Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTyGiaCP.Value), 0, modGeneral.TypeOfValue.Nothing))), 0);
                                        }
                                        obj2 = new RowColEventArgs(num, 0x15);
                                        this.VSlist_AfterEdit(this.VSlist, (RowColEventArgs) obj2);
                                    }
                                }
                                break;
                        }
                    }
                }
            }
        }

        public void PhanBoPhi()
        {
            double num4 = 0.0;
            double pTongSo = 0.0;
            double num6 = 0.0;
            double num3 = 0.0;
            double num5 = 0.0;
            double num8 = 0.0;
            double num9 = 0.0;
            clsDMLoaiTien tien = new clsDMLoaiTien();
            if (!((LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboPhanBo.SelectedValue), "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "") | (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboPhanBo.SelectedValue), "", modGeneral.TypeOfValue.Nothing).ToString() == "PB")))
            {
                num4 = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtChiPhiPhanBo.Value), 0, modGeneral.TypeOfValue.Nothing));
                num5 = num4;
                num8 = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.txtTyGia.Value), 0, modGeneral.TypeOfValue.Nothing));
                tien.LoadByCode(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboLoaiTien.SelectedValue), "", modGeneral.TypeOfValue.String).ToString().Trim());
                int soLe = tien.SoLe;
                if (num4 != 0.0)
                {
                    int num;
                    switch (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboPhanBo.SelectedValue), "", modGeneral.TypeOfValue.Nothing).ToString().Trim())
                    {
                        case "TG":
                            pTongSo = LVYModule.SumColGrid(this.VSlist, 15);
                            if (pTongSo != 0.0)
                            {
                                int num10 = this.VSlist.Rows.Count - 1;
                                for (num = 2; num <= num10; num++)
                                {
                                    if (num < (this.VSlist.Rows.Count - 1))
                                    {
                                        num9 = this.PhanTram(pTongSo, Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[num, 15]), 0, modGeneral.TypeOfValue.Nothing)));
                                        num3 = Math.Round((double) ((num4 * num9) / 100.0), soLe);
                                        this.VSlist[num, 0x11] = num3;
                                        num5 -= num3;
                                    }
                                    else
                                    {
                                        this.VSlist[num, 0x11] = num5;
                                    }
                                    RowColEventArgs e = new RowColEventArgs(num, 0x11);
                                    this.VSlist_AfterEdit(this.VSlist, e);
                                }
                            }
                            break;

                        case "SL":
                            num6 = LVYModule.SumColGrid(this.VSlist, 13);
                            if (num6 != 0.0)
                            {
                                int num11 = this.VSlist.Rows.Count - 1;
                                for (num = 2; num <= num11; num++)
                                {
                                    if (num < (this.VSlist.Rows.Count - 1))
                                    {
                                        num9 = this.PhanTram(num6, Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[num, 13]), 0, modGeneral.TypeOfValue.Nothing)));
                                        num3 = (num4 * num9) / 100.0;
                                        this.VSlist[num, 0x11] = Math.Round(num3, 0);
                                        num5 -= num3;
                                    }
                                    else
                                    {
                                        this.VSlist[num, 0x11] = num5;
                                    }
                                    RowColEventArgs args2 = new RowColEventArgs(num, 0x11);
                                    this.VSlist_AfterEdit(this.VSlist, args2);
                                }
                            }
                            break;
                    }
                }
            }
        }

        public double PhanTram(double pTongSo, double pSo)
        {
            return ((pSo * 100.0) / pTongSo);
        }

        public bool SaveDetails()
        {
            int num2 = this.VSlist.Rows.Count - 1;
            for (int i = 2; i <= num2; i++)
            {
                if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[i, 0]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
                {
                    this.VSlist[i, 0] = modGeneral.CreatKey("ST_NhapKhoChiTiet", 15, "NK");
                }
                clsNhapKhoChiTiet objNKCT = this.objNKCT;
                objNKCT.Khoa = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[i, 0]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim();
                objNKCT.KhoaPhieuNhap = this.cFrmKhoa;
                objNKCT.KhoaKho = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[i, 1]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim();
                objNKCT.KhoaHangHoa = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[i, 3]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim();
                objNKCT.SoLoHang = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[i, 6]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim();
                objNKCT.SoSeri = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[i, 7]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim();
                objNKCT.NgayNhap = LVYModule.Date2Char(this.TxtNgayChungTu.Text);
                objNKCT.NgayHetHanDung = LVYModule.Date2Char(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[i, 9]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim());
                objNKCT.KhoaDonViTinh = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[i, 10]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim();
                objNKCT.HeSo = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[i, 12]), 1, modGeneral.TypeOfValue.Nothing));
                objNKCT.SoLuong = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[i, 13]), 1, modGeneral.TypeOfValue.Nothing));
                objNKCT.LoaiTien = this.CboLoaiTien.SelectedValue.ToString().Trim();
                objNKCT.TyGia = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.txtTyGia.Value), 1, modGeneral.TypeOfValue.Nothing));
                objNKCT.DonGiaNT = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[i, 14]), 0, modGeneral.TypeOfValue.Nothing));
                objNKCT.DonGia = objNKCT.DonGiaNT * objNKCT.TyGia;
                objNKCT.TienHangNT = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[i, 15]), 0, modGeneral.TypeOfValue.Nothing));
                objNKCT.TienHang = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[i, 0x10]), 0, modGeneral.TypeOfValue.Nothing));
                objNKCT.TyLeChietKhau = Conversions.ToInteger(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[i, 0x13]), 0, modGeneral.TypeOfValue.Nothing));
                objNKCT.TienChietKhauNT = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[i, 20]), 0, modGeneral.TypeOfValue.Nothing));
                objNKCT.TienChietKhau = objNKCT.TienChietKhauNT;
                objNKCT.TienPhiNhapKhauNT = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[i, 0x11]), 0, modGeneral.TypeOfValue.Nothing));
                objNKCT.TienPhiNhapKhau = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[i, 0x12]), 0, modGeneral.TypeOfValue.Nothing));
                objNKCT.TienPhiNKNT = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[i, 0x15]), 0, modGeneral.TypeOfValue.Nothing));
                objNKCT.TienPhiNK = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[i, 0x16]), 0, modGeneral.TypeOfValue.Nothing));
                objNKCT.TienPhiNT = objNKCT.TienPhiNKNT;
                objNKCT.TienPhi = objNKCT.TienPhiNK;
                objNKCT.TyLeThueNK = Conversions.ToInteger(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[i, 0x17]), 0, modGeneral.TypeOfValue.Nothing));
                objNKCT.TienThueNhapKhauNT = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[i, 0x18]), 0, modGeneral.TypeOfValue.Nothing));
                objNKCT.TienThueNhapKhau = objNKCT.TienThueNhapKhauNT;
                objNKCT.TyLeThue = Conversions.ToInteger(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[i, 0x19]), 0, modGeneral.TypeOfValue.Nothing));
                objNKCT.TienThueNT = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[i, 0x1a]), 0, modGeneral.TypeOfValue.Nothing));
                objNKCT.TienThue = objNKCT.TienThueNT;
                objNKCT.KhoaTKHangHoa = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[i, 0x1b]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim();
                if (!objNKCT.Save())
                {
                    return false;
                }
                objNKCT = null;
            }
            return true;
        }

        public void ShowData(string strKhoa)
        {
            if (this.objNK.Load(strKhoa))
            {
                clsNhapKho objNK = this.objNK;
                this.cFrmKhoa = objNK.Khoa;
                this.TxtSoDonHang.Tag = objNK.KhoaDonHang;
                this.TxtNgayDathang.Text = LVYModule.Char2Date(objNK.NgayDonHang);
                this.TxtSoDonHang.Text = objNK.SoDonHang;
                this.TxtSoChungTu.Text = objNK.SoChungTu;
                this.TxtNgayChungTu.Text = LVYModule.Char2Date(objNK.NgayChungTu);
                this.CboLoaiTien.SelectedValue = objNK.LoaiTien.ToString().Trim();
                this.txtTyGia.Value = objNK.TyGia;
                this.AdvNhaCungCap.Value = objNK.KhoaDoiTuong;
                this.TxtSoHoaDon.Text = objNK.SoHoaDon;
                this.TxtNgayHoaDon.Text = LVYModule.Char2Date(objNK.NgayHoaDon);
                this.TxtSoSeri.Text = objNK.SoSeri;
                this.TxtThueSuat.Value = objNK.ThueSuat;
                this.AdvTaiKhoanCo.Value = objNK.KhoaTKThanhToan;
                this.AdvTaiKhoanNoThueGTGT.Value = objNK.KhoaTKNoThueVAT;
                this.AdvTKThueNhapKhau.Value = objNK.KhoaTKThueNK;
                this.AdvTaiKhoanCoThueGTGT.Value = objNK.KhoaTKCoThueVAT;
                this.TxtTongTienHangNT.Value = objNK.TienHangNT;
                this.TxtTongTienHang.Value = objNK.TienHang;
                this.TxtTongTienThueNhapKhau.Value = objNK.TienThueNhapKhau;
                this.TxtTongTienThueNhapKhauNT.Value = objNK.TienThueNhapKhauNT;
                this.TxtTongTienThue.Value = objNK.TienThueVAT;
                this.TxtTongTienThueNT.Value = objNK.TienThueVATNT;
                this.TxtDienGiai.Text = objNK.DienGiai;
                this.TxtSoHoaDonThueNK.Text = objNK.SoHoaDonNK;
                this.TxtNgayHoaDonNK.Text = LVYModule.Char2Date(objNK.NgayHoaDonNK);
                this.TxtSoToKhai.Text = objNK.SoToKhai;
                this.TxtChiPhiPhanBo.Value = objNK.TienPhiNhapKhauNT;
                this.TxtHanNopThue.Value = objNK.HanNopThueNK;
                this.TxtNgayNopThue.Text = LVYModule.Char2Date(objNK.NgayNopThueNK);
                this.TxtTongTienPhiNT.Value = objNK.TienPhiNhapKhauNT;
                this.TxtTongTienPhi.Value = objNK.TienPhiNhapKhau;
                this.TxtSoHopDong.Text = objNK.SoHopDong;
                this.AdvTKThanhToan.Value = objNK.KhoaTKCoPhiNK;
                this.AdvTKThue.Value = objNK.KhoaTKThuePhiNK;
                this.AdvNhaCungCapPhiNK.Value = objNK.KhoaDoiTuongPhiNK;
                this.CboLoaiTienCP.SelectedValue = objNK.LoaiTienPhiNK;
                this.TxtTyGiaCP.Value = objNK.TyGiaPhiNK;
                this.CboPhanBoCP.SelectedValue = objNK.PhanBoPhiNK;
                this.CboLoaiHoaDonCP.SelectedValue = objNK.KhoaLoaiHoaDonNK;
                this.TxtSoHoaDonCP.Text = objNK.SoHoaDonNK;
                this.TxtSoSeriCP.Text = objNK.SoSeriPhiNK;
                this.TxtNgayHoaDonCP.Text = LVYModule.Char2Date(objNK.NgayHoaDonPhiNK);
                this.TxtThueSuatCP.Value = objNK.ThueSuatPhiNK;
                this.TxtTienPhiCPNT.Value = objNK.TienPhiNKNT;
                this.TxtTienPhiCP.Value = objNK.TienPhiNK;
                this.TxtTienThuePhiNT.Value = objNK.TienThuePhiNKNT;
                this.TxtTienThuePhi.Value = objNK.TienThuePhiNK;
                this.TxtDienGiaiPhiNK.Text = objNK.DienGiaiPhiNK;
                this.TxtTongTienPhiNKNT.Value = objNK.TienPhiNKNT;
                this.TxtTongTienPhiNK.Value = objNK.TienPhiNK;
                this.TxtTongThuePhiNKNT.Value = objNK.TienThuePhiNKNT;
                this.TxtTongThuePhiNK.Value = objNK.TienThuePhiNK;
                this.TxtTongThanhToanNT.Value = objNK.TienHangNT + objNK.TienPhiNT;
                this.TxtTongThanhToan.Value = objNK.TienHang + objNK.TienPhi;
                this.TxtCongPhiNT.Value = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTongTienPhiNKNT.Value), 0, modGeneral.TypeOfValue.Nothing)) + Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTongThuePhiNKNT.Value), 0, modGeneral.TypeOfValue.Nothing));
                this.TxtCongPhi.Value = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTongTienPhiNK.Value), 0, modGeneral.TypeOfValue.Nothing)) + Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTongThuePhiNK.Value), 0, modGeneral.TypeOfValue.Nothing));
                this.TxtTongCong.Value = ((Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTongThanhToan.Value), 0, modGeneral.TypeOfValue.Nothing)) + Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtCongPhi.Value), 0, modGeneral.TypeOfValue.Nothing))) + Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTongTienThueNhapKhau.Value), 0, modGeneral.TypeOfValue.Nothing))) + Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTongTienThue.Value), 0, modGeneral.TypeOfValue.Nothing));
                if (Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectNotEqual(this.TxtTongTienPhiNT.Value, 0, false))
                {
                    this.VSlist.Cols[0x11].Visible = true;
                    this.VSlist.Cols[0x12].Visible = true;
                }
                else
                {
                    this.VSlist.Cols[0x11].Visible = false;
                    this.VSlist.Cols[0x12].Visible = false;
                }
                if (objNK.TienPhiNKNT != 0.0)
                {
                    this.CKPhanBoPhi.Checked = true;
                }
                else
                {
                    this.CKPhanBoPhi.Checked = false;
                }
                this.CboKhaiThue.SelectedValue = objNK.KhoaHangMucBaoCaoThue;
                objNK = null;
                DataTable listDetails = this.objNK.GetListDetails(this.cFrmKhoa);
                if (listDetails != null)
                {
                    this.VSlist.Rows.Count = 2;
                    int num2 = listDetails.Rows.Count - 1;
                    for (int i = 0; i <= num2; i++)
                    {
                        C1.Win.C1FlexGrid.C1FlexGrid vSlist = this.VSlist;
                        vSlist.AddItem("");
                        vSlist[vSlist.Rows.Count - 1, 0] = RuntimeHelpers.GetObjectValue(listDetails.Rows[i]["Khoa"]);
                        vSlist[vSlist.Rows.Count - 1, 1] = RuntimeHelpers.GetObjectValue(listDetails.Rows[i]["KhoaKho"]);
                        vSlist[vSlist.Rows.Count - 1, 2] = RuntimeHelpers.GetObjectValue(listDetails.Rows[i]["KhoHang"]);
                        vSlist[vSlist.Rows.Count - 1, 3] = RuntimeHelpers.GetObjectValue(listDetails.Rows[i]["KhoaHangHoa"]);
                        vSlist[vSlist.Rows.Count - 1, 4] = RuntimeHelpers.GetObjectValue(listDetails.Rows[i]["Ma"]);
                        vSlist[vSlist.Rows.Count - 1, 5] = RuntimeHelpers.GetObjectValue(listDetails.Rows[i]["HangHoa"]);
                        vSlist[vSlist.Rows.Count - 1, 6] = RuntimeHelpers.GetObjectValue(listDetails.Rows[i]["SoLoHang"]);
                        vSlist[vSlist.Rows.Count - 1, 7] = RuntimeHelpers.GetObjectValue(listDetails.Rows[i]["SoSeri"]);
                        vSlist[vSlist.Rows.Count - 1, 9] = LVYModule.Char2Date(Conversions.ToString(listDetails.Rows[i]["NgayHetHanDung"]));
                        vSlist[vSlist.Rows.Count - 1, 10] = RuntimeHelpers.GetObjectValue(listDetails.Rows[i]["KhoaDonViTinh"]);
                        vSlist[vSlist.Rows.Count - 1, 11] = RuntimeHelpers.GetObjectValue(listDetails.Rows[i]["DonViTinh"]);
                        vSlist[vSlist.Rows.Count - 1, 12] = RuntimeHelpers.GetObjectValue(listDetails.Rows[i]["HeSo"]);
                        vSlist[vSlist.Rows.Count - 1, 13] = RuntimeHelpers.GetObjectValue(listDetails.Rows[i]["SoLuong"]);
                        vSlist[vSlist.Rows.Count - 1, 14] = RuntimeHelpers.GetObjectValue(listDetails.Rows[i]["DonGiaNT"]);
                        vSlist[vSlist.Rows.Count - 1, 15] = RuntimeHelpers.GetObjectValue(listDetails.Rows[i]["TienHangNT"]);
                        vSlist[vSlist.Rows.Count - 1, 0x10] = RuntimeHelpers.GetObjectValue(listDetails.Rows[i]["TienHang"]);
                        vSlist[vSlist.Rows.Count - 1, 0x11] = RuntimeHelpers.GetObjectValue(listDetails.Rows[i]["TienPhiNhapKhauNT"]);
                        vSlist[vSlist.Rows.Count - 1, 0x12] = RuntimeHelpers.GetObjectValue(listDetails.Rows[i]["TienPhiNhapKhau"]);
                        vSlist[vSlist.Rows.Count - 1, 0x13] = RuntimeHelpers.GetObjectValue(listDetails.Rows[i]["TyLeChietKhau"]);
                        vSlist[vSlist.Rows.Count - 1, 20] = RuntimeHelpers.GetObjectValue(listDetails.Rows[i]["TienChietKhauNT"]);
                        vSlist[vSlist.Rows.Count - 1, 0x15] = RuntimeHelpers.GetObjectValue(listDetails.Rows[i]["TienPhiNKNT"]);
                        vSlist[vSlist.Rows.Count - 1, 0x16] = RuntimeHelpers.GetObjectValue(listDetails.Rows[i]["TienPhiNK"]);
                        vSlist[vSlist.Rows.Count - 1, 0x17] = RuntimeHelpers.GetObjectValue(listDetails.Rows[i]["TyLeThueNK"]);
                        vSlist[vSlist.Rows.Count - 1, 0x18] = RuntimeHelpers.GetObjectValue(listDetails.Rows[i]["TienThueNhapKhauNT"]);
                        vSlist[vSlist.Rows.Count - 1, 0x19] = RuntimeHelpers.GetObjectValue(listDetails.Rows[i]["TyLeThue"]);
                        vSlist[vSlist.Rows.Count - 1, 0x1a] = RuntimeHelpers.GetObjectValue(listDetails.Rows[i]["TienThueNT"]);
                        vSlist[vSlist.Rows.Count - 1, 0x1b] = RuntimeHelpers.GetObjectValue(listDetails.Rows[i]["KhoaTKHangHoa"]);
                        vSlist[vSlist.Rows.Count - 1, 0x1c] = RuntimeHelpers.GetObjectValue(listDetails.Rows[i]["SoTaiKhoan"]);
                        vSlist = null;
                    }
                }
            }
        }

        public void TinhChietKhau(int nRow)
        {
            double num = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[nRow, 0x10]), 0, modGeneral.TypeOfValue.Nothing));
            int num2 = Conversions.ToInteger(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[nRow, 0x11]), 0, modGeneral.TypeOfValue.Nothing));
            this.VSlist[nRow, 20] = Math.Round((double) ((num * num2) / 100.0), 0);
        }

        public void TinhThue()
        {
            int num2 = this.VSlist.Rows.Count - 1;
            for (int i = 2; i <= num2; i++)
            {
                this.TinhTienThue(i);
            }
        }

        public void TinhThueNhapKhau(int nRow)
        {
            double num = ((Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[nRow, 0x10]), 0, modGeneral.TypeOfValue.Nothing)) + Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[nRow, 0x12]), 0, modGeneral.TypeOfValue.Nothing))) - Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[nRow, 20]), 0, modGeneral.TypeOfValue.Nothing))) + Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[nRow, 0x16]), 0, modGeneral.TypeOfValue.Nothing));
            int num2 = Conversions.ToInteger(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[nRow, 0x17]), 0, modGeneral.TypeOfValue.Nothing));
            this.VSlist[nRow, 0x18] = Math.Round((double) ((num * num2) / 100.0), 0);
        }

        public void TinhTienHang(int nRow)
        {
            double num3 = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.txtTyGia.Value), 1, modGeneral.TypeOfValue.Nothing));
            double num2 = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[nRow, 13]), 0, modGeneral.TypeOfValue.Nothing));
            double num = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[nRow, 14]), 0, modGeneral.TypeOfValue.Nothing));
            this.VSlist[nRow, 15] = num2 * num;
            this.VSlist[nRow, 0x10] = (num2 * num) * num3;
        }

        public void TinhTienThue(int nRow)
        {
            double num = (((Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[nRow, 0x10]), 0, modGeneral.TypeOfValue.Nothing)) + Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[nRow, 0x12]), 0, modGeneral.TypeOfValue.Nothing))) - Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[nRow, 20]), 0, modGeneral.TypeOfValue.Nothing))) + Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[nRow, 0x16]), 0, modGeneral.TypeOfValue.Nothing))) + Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[nRow, 0x18]), 0, modGeneral.TypeOfValue.Nothing));
            int num2 = Conversions.ToInteger(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[nRow, 0x19]), 0, modGeneral.TypeOfValue.Nothing));
            this.VSlist[nRow, 0x1a] = Math.Round((double) ((num * num2) / 100.0), 0);
        }

        public void TinhTienThueNhapKhau()
        {
            int num2 = this.VSlist.Rows.Count - 1;
            for (int i = 2; i <= num2; i++)
            {
                this.TinhThueNhapKhau(i);
            }
        }

        public void TinhTong()
        {
            double num = 0.0;
            num = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.txtTyGia.Value), 1, modGeneral.TypeOfValue.Nothing));
            if (num == 0.0)
            {
                num = 1.0;
            }
            this.TxtTongTienHangNT.Value = LVYModule.SumColGrid(this.VSlist, 15);
            this.TxtTongTienHang.Value = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTongTienHangNT.Value), 0, modGeneral.TypeOfValue.Nothing)) * num;
            this.TxtTongTienPhiNT.Value = LVYModule.SumColGrid(this.VSlist, 0x11);
            this.TxtTongTienPhi.Value = LVYModule.SumColGrid(this.VSlist, 0x12);
            if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboLoaiTien.SelectedValue), "", modGeneral.TypeOfValue.String).ToString().Trim() == LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboLoaiTienCP.SelectedValue), "", modGeneral.TypeOfValue.String).ToString().Trim())
            {
            }
            this.TxtTongTienThueNhapKhau.Value = LVYModule.SumColGrid(this.VSlist, 0x18);
            this.TxtTongTienThueNhapKhauNT.Value = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTongTienThueNhapKhau.Value), 0, modGeneral.TypeOfValue.Nothing)) / num;
            this.TxtTongTienThue.Value = LVYModule.SumColGrid(this.VSlist, 0x1a);
            this.TxtTongTienThueNT.Value = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTongTienThue.Value), 0, modGeneral.TypeOfValue.Nothing)) / num;
            this.TxtTongThanhToanNT.Value = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTongTienHangNT.Value), 0, modGeneral.TypeOfValue.Nothing)) + Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTongTienPhiNT.Value), 0, modGeneral.TypeOfValue.Nothing));
            this.TxtTongThanhToan.Value = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTongTienHang.Value), 0, modGeneral.TypeOfValue.Nothing)) + Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTongTienPhi.Value), 0, modGeneral.TypeOfValue.Nothing));
            this.TxtCongPhiNT.Value = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTongTienPhiNKNT.Value), 0, modGeneral.TypeOfValue.Nothing)) + Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTongThuePhiNKNT.Value), 0, modGeneral.TypeOfValue.Nothing));
            this.TxtCongPhi.Value = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTongTienPhiNK.Value), 0, modGeneral.TypeOfValue.Nothing)) + Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTongThuePhiNK.Value), 0, modGeneral.TypeOfValue.Nothing));
            this.TxtTongCong.Value = ((Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTongThanhToan.Value), 0, modGeneral.TypeOfValue.Nothing)) + Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtCongPhi.Value), 0, modGeneral.TypeOfValue.Nothing))) + Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTongTienThueNhapKhau.Value), 0, modGeneral.TypeOfValue.Nothing))) + Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTongTienThue.Value), 0, modGeneral.TypeOfValue.Nothing));
        }

        private void TxtChiPhiPhanBo_LostFocus(object sender, EventArgs e)
        {
            if (this.mEnabledControl && (this.CKPhanBoPhi.CheckState != CheckState.Unchecked))
            {
                double num = 0.0;
                double num2 = 1.0;
                num = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtChiPhiPhanBo.Value), 0, modGeneral.TypeOfValue.Nothing));
                num2 = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.txtTyGia.Value), 0, modGeneral.TypeOfValue.Nothing));
                this.CboPhanBo_SelectedIndexChanged(RuntimeHelpers.GetObjectValue(sender), e);
            }
        }

        private void TxtChiPhiPhanBo_TextChanged(object sender, EventArgs e)
        {
        }

        private void TxtDienGiai_LostFocus(object sender, EventArgs e)
        {
            this.CmdAddRow.Focus();
        }

        private void TxtHanNopThue_LostFocus(object sender, EventArgs e)
        {
            if (this.mEnabledControl)
            {
                double number = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtHanNopThue.Value), 0, modGeneral.TypeOfValue.Nothing));
                if (number == 0.0)
                {
                    this.TxtNgayNopThue.Text = this.TxtNgayChungTu.Text;
                }
                else
                {
                    this.TxtNgayNopThue.Text = Strings.Format(DateAndTime.DateAdd(DateInterval.Day, number, Conversions.ToDate(this.TxtNgayChungTu.Text)), "dd/MM/yyyy");
                }
            }
        }

        private void TxtHanThanhToan_LostFocus(object sender, EventArgs e)
        {
            if (this.mEnabledControl)
            {
                double number = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtHanThanhToan.Value), 0, modGeneral.TypeOfValue.Nothing));
                if (number == 0.0)
                {
                    this.TxtNgayToiHanThanhToan.Text = this.TxtNgayToiHanThanhToan.Text;
                }
                else
                {
                    this.TxtNgayToiHanThanhToan.Text = Strings.Format(DateAndTime.DateAdd(DateInterval.Day, number, Conversions.ToDate(this.TxtNgayHoaDonNK.Text)), "dd/MM/yyyy");
                }
            }
        }

        private void TxtNgayNopThue_TextChanged(object sender, EventArgs e)
        {
            int num = (int) DateAndTime.DateDiff(DateInterval.Day, Conversions.ToDate(this.TxtNgayChungTu.Text), Conversions.ToDate(this.TxtNgayNopThue.Text), FirstDayOfWeek.Sunday, FirstWeekOfYear.Jan1);
            this.TxtHanNopThue.Value = num;
        }

        private void TxtSoHoaDon_TextChanged(object sender, EventArgs e)
        {
            if (this.AdvNhaCungCap.Value.Trim() == "")
            {
                this.AdvNhaCungCapPhiNK.Value = "";
            }
            else
            {
                this.AdvNhaCungCapPhiNK.Value = this.AdvNhaCungCap.Value;
            }
        }

        private void TxtThueSuat_ValueChanged(object sender, EventArgs e)
        {
            int num2 = this.VSlist.Rows.Count - 1;
            for (int i = 2; i <= num2; i++)
            {
                this.VSlist[i, 0x19] = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtThueSuat.Value), 0, modGeneral.TypeOfValue.Nothing));
                RowColEventArgs args = new RowColEventArgs(i, 0x19);
                this.VSlist_AfterEdit(this.VSlist, args);
            }
            if (this.AdvNhaCungCap.Value.Trim() == "")
            {
                this.AdvNhaCungCapPhiNK.Value = "";
            }
            else
            {
                this.AdvNhaCungCapPhiNK.Value = this.AdvNhaCungCap.Value;
            }
        }

        private void TxtTienPhiCPNT_ValueChanged(object sender, EventArgs e)
        {
            this.TxtTienPhiCP.Value = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTienPhiCPNT.Value), 0, modGeneral.TypeOfValue.Nothing)) * Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTyGiaCP.Value), 0, modGeneral.TypeOfValue.Nothing));
            this.TxtTienThuePhiNT.Value = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTienPhiCPNT.Value), 0, modGeneral.TypeOfValue.Nothing)) * (Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtThueSuatCP.Value), 0, modGeneral.TypeOfValue.Nothing)) / 100.0);
            this.TxtTienThuePhi.Value = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTienThuePhiNT.Value), 0, modGeneral.TypeOfValue.Nothing)) * Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTyGiaCP.Value), 0, modGeneral.TypeOfValue.Nothing));
            this.PhanBoChiPhiNhapKhau();
        }

        private void txtTyGia_LostFocus(object sender, EventArgs e)
        {
            int row = 0;
            this.TxtTyGiaCP.Value = RuntimeHelpers.GetObjectValue(this.txtTyGia.Value);
            if (this.VSlist.Rows.Count != 2)
            {
                int num2 = this.VSlist.Rows.Count - 1;
                for (row = 2; row <= num2; row++)
                {
                    RowColEventArgs args = new RowColEventArgs(row, 13);
                    this.VSlist_AfterEdit(RuntimeHelpers.GetObjectValue(sender), args);
                }
                this.TxtTienPhiCPNT_ValueChanged(this.TxtTienPhiCPNT, e);
            }
        }

        public object UpdateData()
        {
            object obj2;
            clsNhapKho objNK = this.objNK;
            objNK.Khoa = this.cFrmKhoa;
            objNK.KhoaDonHang = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtSoDonHang.Tag), "", modGeneral.TypeOfValue.Nothing).ToString().Trim();
            objNK.NgayDonHang = LVYModule.Date2Char(this.TxtNgayDathang.Text);
            objNK.SoDonHang = LVYModule.ReturnIfNull(this.TxtSoDonHang.Text, "", modGeneral.TypeOfValue.Nothing).ToString().Trim();
            objNK.SoChungTu = LVYModule.ReturnIfNull(this.TxtSoChungTu.Text, "", modGeneral.TypeOfValue.Nothing).ToString().Trim();
            objNK.NgayChungTu = LVYModule.Date2Char(this.TxtNgayChungTu.Text);
            objNK.LoaiTien = this.CboLoaiTien.SelectedValue.ToString().Trim();
            objNK.SoToKhai = this.TxtSoToKhai.Text;
            objNK.TyGia = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.txtTyGia.Value), 1, modGeneral.TypeOfValue.Nothing));
            objNK.KhoaDoiTuong = this.AdvNhaCungCap.Value;
            objNK.SoHoaDon = LVYModule.ReturnIfNull(this.TxtSoHoaDon.Text, "", modGeneral.TypeOfValue.Nothing).ToString();
            objNK.NgayHoaDon = LVYModule.Date2Char(this.TxtNgayHoaDon.Text);
            objNK.SoSeri = LVYModule.ReturnIfNull(this.TxtSoSeri.Text, "", modGeneral.TypeOfValue.Nothing).ToString().Trim();
            objNK.ThueSuat = Conversions.ToInteger(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtThueSuat.Value), 0, modGeneral.TypeOfValue.Nothing));
            objNK.KhoaTKThanhToan = this.AdvTaiKhoanCo.Value;
            objNK.KhoaTKNoThueVAT = this.AdvTaiKhoanNoThueGTGT.Value;
            objNK.KhoaTKCoThueVAT = this.AdvTaiKhoanCoThueGTGT.Value;
            objNK.KhoaTKThueNK = this.AdvTKThueNhapKhau.Value;
            objNK.SoHoaDonNK = this.TxtSoHoaDonThueNK.Text;
            objNK.NgayHoaDonNK = LVYModule.Date2Char(this.TxtNgayHoaDonNK.Text);
            objNK.HanNopThueNK = Conversions.ToInteger(this.TxtHanNopThue.Value);
            objNK.HanThanhToan = Conversions.ToInteger(this.TxtHanThanhToan.Value);
            objNK.NgayThanhToan = LVYModule.Date2Char(this.TxtNgayToiHanThanhToan.Text);
            objNK.NgayNopThueNK = LVYModule.Date2Char(this.TxtNgayNopThue.Text);
            objNK.TienHangNT = Conversions.ToDouble(this.TxtTongTienHangNT.Value);
            objNK.TienHang = Conversions.ToDouble(this.TxtTongTienHang.Value);
            objNK.TienChietKhau = 0.0;
            objNK.TienChietKhauNT = 0.0;
            objNK.TienThueVAT = Conversions.ToDouble(this.TxtTongTienThue.Value);
            objNK.TienThueVATNT = Conversions.ToDouble(this.TxtTongTienThueNT.Value);
            objNK.TienThueNhapKhauNT = Conversions.ToDouble(this.TxtTongTienThueNhapKhauNT.Value);
            objNK.TienThueNhapKhau = Conversions.ToDouble(this.TxtTongTienThueNhapKhau.Value);
            objNK.TienPhiNhapKhauNT = Conversions.ToDouble(this.TxtTongTienPhiNT.Value);
            objNK.TienPhiNhapKhau = Conversions.ToDouble(this.TxtTongTienPhi.Value);
            objNK.NguonNhap = "NK";
            if (objNK.KhoaNhanVienTao.Trim() == "")
            {
                objNK.KhoaNhanVienTao = modGeneral.H_USERID;
                objNK.NgayTao = LVYModule.Date2Char(Strings.Format(DateAndTime.Today, "dd/MM/yyyy"));
            }
            objNK.KhoaNhanVienSua = modGeneral.H_USERID;
            objNK.NgaySua = LVYModule.Date2Char(Strings.Format(DateAndTime.Today, "dd/MM/yyyy"));
            objNK.KhoaDonVi = modGeneral.H_CLIENT;
            objNK.DienGiai = this.TxtDienGiai.Text.Trim();
            objNK.SoHopDong = this.TxtSoHopDong.Text.Trim();
            objNK.GhiSo = 1;
            objNK.KhoaHangMucBaoCaoThue = Conversions.ToString(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboKhaiThue.SelectedValue), "", modGeneral.TypeOfValue.Nothing));
            if (Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTienPhiCPNT.Value), 0, modGeneral.TypeOfValue.Nothing)) != 0.0)
            {
                objNK.KhoaTKCoPhiNK = this.AdvTKThanhToan.Value;
                objNK.KhoaTKThuePhiNK = "";
                objNK.KhoaDoiTuongPhiNK = this.AdvNhaCungCapPhiNK.Value;
                objNK.LoaiTienPhiNK = Conversions.ToString(this.CboLoaiTienCP.SelectedValue);
                objNK.TyGiaPhiNK = Conversions.ToDouble(this.TxtTyGiaCP.Value);
                objNK.PhanBoPhiNK = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboPhanBoCP.SelectedValue), "", modGeneral.TypeOfValue.String).ToString().Trim();
                objNK.KhoaLoaiHoaDonNK = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboLoaiHoaDonCP.SelectedValue), "", modGeneral.TypeOfValue.String).ToString().Trim();
                objNK.SoHoaDonPhiNK = this.TxtSoHoaDonCP.Text;
                objNK.SoSeriPhiNK = this.TxtSoSeriCP.Text;
                objNK.NgayHoaDonPhiNK = LVYModule.Date2Char(this.TxtNgayHoaDonCP.Text);
                objNK.ThueSuatPhiNK = Conversions.ToInteger(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtThueSuatCP.Value), 0, modGeneral.TypeOfValue.Nothing));
                objNK.TienPhiNKNT = Conversions.ToDouble(this.TxtTienPhiCPNT.Value);
                objNK.TienPhiNK = Conversions.ToDouble(this.TxtTienPhiCP.Value);
                objNK.TienThuePhiNKNT = 0.0;
                objNK.TienThuePhiNK = 0.0;
                objNK.DienGiaiPhiNK = this.TxtDienGiaiPhiNK.Text;
            }
            else
            {
                objNK.KhoaTKCoPhiNK = "";
                objNK.KhoaTKThuePhiNK = "";
                objNK.KhoaDoiTuongPhiNK = "";
                objNK.LoaiTienPhiNK = "";
                objNK.TyGiaPhiNK = 0.0;
                objNK.PhanBoPhiNK = "";
                objNK.KhoaLoaiHoaDonNK = "";
                objNK.SoHoaDonPhiNK = "";
                objNK.SoSeriPhiNK = "";
                objNK.NgayHoaDonPhiNK = "";
                objNK.ThueSuatPhiNK = 0;
                objNK.TienPhiNKNT = 0.0;
                objNK.TienPhiNK = 0.0;
                objNK.TienThuePhiNKNT = 0.0;
                objNK.TienThuePhiNK = 0.0;
                objNK.DienGiaiPhiNK = "";
            }
            return objNK.Save();
            objNK = null;
            return obj2;
        }

        private void VSlist_AfterEdit(object sender, RowColEventArgs e)
        {
            string expression = "";
            switch (e.Col)
            {
                case 2:
                {
                    expression = SearchModule.SearchStore(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[e.Row, e.Col]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim());
                    if (expression.Trim() == "")
                    {
                        this.VSlist[e.Row, 1] = "";
                        this.VSlist[e.Row, 2] = "";
                        break;
                    }
                    object instance = Strings.Split(expression, "|", -1, CompareMethod.Binary);
                    this.VSlist[e.Row, 1] = RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(instance, new object[] { 0 }, null));
                    this.VSlist[e.Row, 2] = RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(instance, new object[] { 1 }, null));
                    break;
                }
                case 7:
                    if ((LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[e.Row, 7]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim() != "") & (Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[e.Row, 13]), 0, modGeneral.TypeOfValue.Nothing)) > 1.0))
                    {
                        LVYModule.ShowWarning(modGeneral.Tranlated("Khi theo d\x00f5i số seri của h\x00e0ng h\x00f3a th\x00ec số lượng kh\x00f4ng thể lớn hơn 1", ""));
                        this.VSlist[e.Row, 13] = 1;
                    }
                    goto Label_073E;

                case 13:
                    if ((LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[e.Row, 7]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim() != "") & (Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[e.Row, 13]), 0, modGeneral.TypeOfValue.Nothing)) > 1.0))
                    {
                        LVYModule.ShowWarning(modGeneral.Tranlated("Khi theo d\x00f5i số seri của h\x00e0ng h\x00f3a th\x00ec số lượng kh\x00f4ng thể lớn hơn 1", ""));
                        this.VSlist[e.Row, 13] = 1;
                    }
                    this.TinhTienHang(e.Row);
                    this.TinhChietKhau(e.Row);
                    if (this.CKPhanBoPhi.CheckState == CheckState.Checked)
                    {
                        this.PhanBoPhi();
                        this.TinhTienThueNhapKhau();
                        this.TinhThue();
                    }
                    else
                    {
                        this.TinhThueNhapKhau(e.Row);
                        this.TinhTienThue(e.Row);
                    }
                    goto Label_073E;

                case 14:
                    this.TinhTienHang(e.Row);
                    this.TinhChietKhau(e.Row);
                    if (this.CKPhanBoPhi.CheckState != CheckState.Checked)
                    {
                        this.TinhThueNhapKhau(e.Row);
                        this.TinhTienThue(e.Row);
                    }
                    else
                    {
                        this.PhanBoPhi();
                        this.TinhTienThueNhapKhau();
                        this.TinhThue();
                    }
                    goto Label_073E;

                case 15:
                case 0x10:
                    if (e.Col == 15)
                    {
                        this.VSlist[e.Row, 0x10] = Math.Round((double) (Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[e.Row, 15]), 0, modGeneral.TypeOfValue.Nothing)) * Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.txtTyGia.Value), 0, modGeneral.TypeOfValue.Nothing))), 0);
                    }
                    this.TinhChietKhau(e.Row);
                    if (this.CKPhanBoPhi.CheckState == CheckState.Checked)
                    {
                        this.PhanBoPhi();
                        this.TinhTienThueNhapKhau();
                        this.TinhThue();
                    }
                    else
                    {
                        this.TinhThueNhapKhau(e.Row);
                        this.TinhTienThue(e.Row);
                    }
                    goto Label_073E;

                case 0x11:
                    this.VSlist[e.Row, 0x12] = Math.Round((double) (Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[e.Row, 0x11]), 0, modGeneral.TypeOfValue.Nothing)) * Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.txtTyGia.Value), 1, modGeneral.TypeOfValue.Nothing))), 0);
                    this.TinhThueNhapKhau(e.Row);
                    this.TinhTienThue(e.Row);
                    goto Label_073E;

                case 0x12:
                    this.TinhThueNhapKhau(e.Row);
                    this.TinhTienThue(e.Row);
                    goto Label_073E;

                case 0x13:
                    this.TinhChietKhau(e.Row);
                    if (this.CKPhanBoPhi.CheckState != CheckState.Checked)
                    {
                        this.TinhThueNhapKhau(e.Row);
                        this.TinhTienThue(e.Row);
                    }
                    else
                    {
                        this.PhanBoPhi();
                        this.TinhTienThueNhapKhau();
                        this.TinhThue();
                    }
                    goto Label_073E;

                case 0x15:
                    this.VSlist[e.Row, 20] = Math.Round((double) (Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[e.Row, 0x13]), 0, modGeneral.TypeOfValue.Nothing)) * Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.txtTyGia.Value), 0, modGeneral.TypeOfValue.Nothing))), 0);
                    this.TinhThueNhapKhau(e.Row);
                    this.TinhTienThue(e.Row);
                    goto Label_073E;

                case 0x16:
                    this.TinhThueNhapKhau(e.Row);
                    this.TinhTienThue(e.Row);
                    goto Label_073E;

                case 0x17:
                    this.TinhThueNhapKhau(e.Row);
                    this.TinhTienThue(e.Row);
                    goto Label_073E;

                case 0x19:
                    this.TinhTienThue(e.Row);
                    goto Label_073E;

                default:
                    goto Label_073E;
            }
            if (e.Row < (this.VSlist.Rows.Count - 1))
            {
                int num3 = this.VSlist.Rows.Count - 1;
                for (int i = e.Row + 1; i <= num3; i++)
                {
                    if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[i, 1]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
                    {
                        this.VSlist[i, 1] = RuntimeHelpers.GetObjectValue(this.VSlist[e.Row, 1]);
                        this.VSlist[i, 2] = RuntimeHelpers.GetObjectValue(this.VSlist[e.Row, 2]);
                    }
                }
            }
            this.VSlist.Select(e.Row, 4);
        Label_073E:
            this.TinhTong();
        }

        private void VSlist_BeforeEdit(object sender, RowColEventArgs e)
        {
            if (!this.mEnabledControl)
            {
                e.Cancel = true;
            }
            else if ((e.Col == 5) | (e.Col == 12))
            {
                e.Cancel = true;
            }
        }

        private void VSlist_CellButtonClick(object sender, RowColEventArgs e)
        {
            string expression = "";
            try
            {
                object obj2;
                switch (e.Col)
                {
                    case 2:
                        expression = SearchModule.SearchStore("");
                        if (expression.Trim() != "")
                        {
                            obj2 = Strings.Split(expression, "|", -1, CompareMethod.Binary);
                            this.VSlist[e.Row, 1] = RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(obj2, new object[] { 0 }, null));
                            this.VSlist[e.Row, 2] = RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(obj2, new object[] { 2 }, null));
                        }
                        if (e.Row < (this.VSlist.Rows.Count - 1))
                        {
                            int num3 = this.VSlist.Rows.Count - 1;
                            for (int i = e.Row + 1; i <= num3; i++)
                            {
                                if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[i, 1]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
                                {
                                    this.VSlist[i, 1] = RuntimeHelpers.GetObjectValue(this.VSlist[e.Row, 1]);
                                    this.VSlist[i, 2] = RuntimeHelpers.GetObjectValue(this.VSlist[e.Row, 2]);
                                }
                            }
                        }
                        this.VSlist.Select(e.Row, 4);
                        return;

                    case 3:
                    case 5:
                    case 6:
                    case 7:
                    case 8:
                    case 9:
                    case 10:
                        return;

                    case 4:
                    {
                        expression = SearchModule.SearchHangHoa(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[e.Row, e.Col]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim(), "", "");
                        if (expression.Trim() == "")
                        {
                            break;
                        }
                        obj2 = Strings.Split(expression, "|", -1, CompareMethod.Binary);
                        this.VSlist[e.Row, 3] = RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(obj2, new object[] { 0 }, null));
                        this.VSlist[e.Row, 4] = RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(obj2, new object[] { 1 }, null));
                        this.VSlist[e.Row, 5] = RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(obj2, new object[] { 2 }, null));
                        this.VSlist[e.Row, 10] = "";
                        this.VSlist[e.Row, 11] = "";
                        this.VSlist[e.Row, 12] = 0;
                        clsDMHangHoa hoa = new clsDMHangHoa();
                        DataTable hangHoa = hoa.GetHangHoa(NewLateBinding.LateIndexGet(obj2, new object[] { 0 }, null).ToString());
                        this.VSlist[e.Row, 10] = RuntimeHelpers.GetObjectValue(hangHoa.Rows[0]["KhoaDonViTinh"]);
                        this.VSlist[e.Row, 11] = RuntimeHelpers.GetObjectValue(hangHoa.Rows[0]["DonViTinh"]);
                        this.VSlist[e.Row, 12] = 1;
                        this.VSlist[e.Row, 0x1b] = RuntimeHelpers.GetObjectValue(hangHoa.Rows[0]["KhoaTKHangHoa"]);
                        this.VSlist[e.Row, 0x1c] = RuntimeHelpers.GetObjectValue(hangHoa.Rows[0]["TaiKhoanHangHoa"]);
                        this.VSlist[e.Row, 14] = hoa.GetGiaMua(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboLoaiTien.SelectedValue), "", modGeneral.TypeOfValue.String).ToString().Trim(), NewLateBinding.LateIndexGet(obj2, new object[] { 0 }, null).ToString());
                        hoa.Load(NewLateBinding.LateIndexGet(obj2, new object[] { 0 }, null).ToString());
                        this.VSlist[e.Row, 0x17] = hoa.TyLeThueNhapKhau;
                        this.VSlist[e.Row, 0x19] = hoa.TyLeThue;
                        goto Label_0554;
                    }
                    case 11:
                        obj2 = SearchModule.SearchDVT(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[e.Row, 3]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim(), this.VSlist, e.Row, e.Col, LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[e.Row, 10]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim());
                        if (obj2 != null)
                        {
                            goto Label_05F0;
                        }
                        return;

                    default:
                        return;
                }
                this.VSlist[e.Row, 3] = "";
                this.VSlist[e.Row, 4] = "";
                this.VSlist[e.Row, 5] = "";
            Label_0554:
                this.VSlist.Select(e.Row, 13);
                return;
            Label_05F0:
                if (Information.UBound((Array) obj2, 1) >= 2)
                {
                    this.VSlist[e.Row, 10] = RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(obj2, new object[] { 0 }, null));
                    this.VSlist[e.Row, 11] = RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(obj2, new object[] { 1 }, null));
                    this.VSlist[e.Row, 12] = RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(obj2, new object[] { 2 }, null));
                }
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                ProjectData.ClearProjectError();
            }
        }

        internal virtual ADVAccount AdvAccount2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvAccount2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvAccount2 = value;
            }
        }

        internal virtual ADVAccount AdvAccount3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvAccount3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvAccount3 = value;
            }
        }

        internal virtual ADVObjects AdvNhaCungCap
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvNhaCungCap;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                ADVObjects.ValueChangedEventHandler handler = new ADVObjects.ValueChangedEventHandler(this.AdvNhaCungCap_ValueChanged);
                if (this._AdvNhaCungCap != null)
                {
                    this._AdvNhaCungCap.ValueChanged -= handler;
                }
                this._AdvNhaCungCap = value;
                if (this._AdvNhaCungCap != null)
                {
                    this._AdvNhaCungCap.ValueChanged += handler;
                }
            }
        }

        internal virtual ADVObjects AdvNhaCungCapPhiNK
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvNhaCungCapPhiNK;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvNhaCungCapPhiNK = value;
            }
        }

        internal virtual ADVObjects AdvObjects2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvObjects2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvObjects2 = value;
            }
        }

        internal virtual ADVAccount AdvTaiKhoanCo
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvTaiKhoanCo;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvTaiKhoanCo = value;
            }
        }

        internal virtual ADVAccount AdvTaiKhoanCoThueGTGT
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvTaiKhoanCoThueGTGT;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvTaiKhoanCoThueGTGT = value;
            }
        }

        internal virtual ADVAccount AdvTaiKhoanNoThueGTGT
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvTaiKhoanNoThueGTGT;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvTaiKhoanNoThueGTGT = value;
            }
        }

        internal virtual ADVAccount AdvTKThanhToan
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvTKThanhToan;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvTKThanhToan = value;
            }
        }

        internal virtual ADVAccount AdvTKThue
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvTKThue;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvTKThue = value;
            }
        }

        internal virtual ADVAccount AdvTKThueNhapKhau
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvTKThueNhapKhau;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvTKThueNhapKhau = value;
            }
        }

        internal virtual C1DockingTab C1DockingTab1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTab1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTab1 = value;
            }
        }

        internal virtual C1DockingTab C1DockingTab2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTab2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTab2 = value;
            }
        }

        internal virtual C1DockingTabPage C1DockingTabPage1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTabPage1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTabPage1 = value;
            }
        }

        internal virtual C1DockingTabPage C1DockingTabPage2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTabPage2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTabPage2 = value;
            }
        }

        internal virtual C1DockingTabPage C1DockingTabPage3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTabPage3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTabPage3 = value;
            }
        }

        internal virtual ComboBox CboKhaiThue
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboKhaiThue;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboKhaiThue = value;
            }
        }

        internal virtual ComboBox CboLoaiHoaDonCP
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboLoaiHoaDonCP;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CboLoaiHoaDonCP_SelectedIndexChanged);
                if (this._CboLoaiHoaDonCP != null)
                {
                    this._CboLoaiHoaDonCP.SelectedIndexChanged -= handler;
                }
                this._CboLoaiHoaDonCP = value;
                if (this._CboLoaiHoaDonCP != null)
                {
                    this._CboLoaiHoaDonCP.SelectedIndexChanged += handler;
                }
            }
        }

        internal virtual ComboBox CboLoaiTien
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboLoaiTien;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CboLoaiTien_SelectedIndexChanged);
                if (this._CboLoaiTien != null)
                {
                    this._CboLoaiTien.SelectedIndexChanged -= handler;
                }
                this._CboLoaiTien = value;
                if (this._CboLoaiTien != null)
                {
                    this._CboLoaiTien.SelectedIndexChanged += handler;
                }
            }
        }

        internal virtual ComboBox CboLoaiTienCP
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboLoaiTienCP;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboLoaiTienCP = value;
            }
        }

        internal virtual ComboBox CboPhanBo
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboPhanBo;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CboPhanBo_SelectedIndexChanged);
                if (this._CboPhanBo != null)
                {
                    this._CboPhanBo.SelectedIndexChanged -= handler;
                }
                this._CboPhanBo = value;
                if (this._CboPhanBo != null)
                {
                    this._CboPhanBo.SelectedIndexChanged += handler;
                }
            }
        }

        internal virtual ComboBox CboPhanBoCP
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboPhanBoCP;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboPhanBoCP = value;
            }
        }

        internal virtual CheckBox CKPhanBoPhi
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CKPhanBoPhi;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CKPhanBoPhi_Click);
                if (this._CKPhanBoPhi != null)
                {
                    this._CKPhanBoPhi.CheckedChanged -= handler;
                }
                this._CKPhanBoPhi = value;
                if (this._CKPhanBoPhi != null)
                {
                    this._CKPhanBoPhi.CheckedChanged += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdAdd
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdAdd;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdAdd_Click);
                if (this._CmdAdd != null)
                {
                    this._CmdAdd.Click -= handler;
                }
                this._CmdAdd = value;
                if (this._CmdAdd != null)
                {
                    this._CmdAdd.Click += handler;
                }
            }
        }

        internal virtual Button CmdAddRow
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdAddRow;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdAddRow_Click);
                if (this._CmdAddRow != null)
                {
                    this._CmdAddRow.Click -= handler;
                }
                this._CmdAddRow = value;
                if (this._CmdAddRow != null)
                {
                    this._CmdAddRow.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdBoGhiSo
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdBoGhiSo;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdBoGhiSo_Click);
                if (this._CmdBoGhiSo != null)
                {
                    this._CmdBoGhiSo.Click -= handler;
                }
                this._CmdBoGhiSo = value;
                if (this._CmdBoGhiSo != null)
                {
                    this._CmdBoGhiSo.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdChiPhi
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdChiPhi;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdChiPhi_Click);
                if (this._CmdChiPhi != null)
                {
                    this._CmdChiPhi.Click -= handler;
                }
                this._CmdChiPhi = value;
                if (this._CmdChiPhi != null)
                {
                    this._CmdChiPhi.Click += handler;
                }
            }
        }

        internal virtual Button CmdCopy
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdCopy;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdCopy_Click);
                if (this._CmdCopy != null)
                {
                    this._CmdCopy.Click -= handler;
                }
                this._CmdCopy = value;
                if (this._CmdCopy != null)
                {
                    this._CmdCopy.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdDel
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdDel;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdDel_Click);
                if (this._CmdDel != null)
                {
                    this._CmdDel.Click -= handler;
                }
                this._CmdDel = value;
                if (this._CmdDel != null)
                {
                    this._CmdDel.Click += handler;
                }
            }
        }

        internal virtual Button CmdDelRow
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdDelRow;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdDelRow_Click);
                if (this._CmdDelRow != null)
                {
                    this._CmdDelRow.Click -= handler;
                }
                this._CmdDelRow = value;
                if (this._CmdDelRow != null)
                {
                    this._CmdDelRow.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdEdit
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdEdit;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdEdit_Click);
                if (this._CmdEdit != null)
                {
                    this._CmdEdit.Click -= handler;
                }
                this._CmdEdit = value;
                if (this._CmdEdit != null)
                {
                    this._CmdEdit.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdExit
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdExit;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdExit_Click);
                if (this._CmdExit != null)
                {
                    this._CmdExit.Click -= handler;
                }
                this._CmdExit = value;
                if (this._CmdExit != null)
                {
                    this._CmdExit.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdFind
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdFind;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdFind_Click);
                if (this._CmdFind != null)
                {
                    this._CmdFind.Click -= handler;
                }
                this._CmdFind = value;
                if (this._CmdFind != null)
                {
                    this._CmdFind.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdGhiSo
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdGhiSo;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdGhiSo_Click);
                if (this._CmdGhiSo != null)
                {
                    this._CmdGhiSo.Click -= handler;
                }
                this._CmdGhiSo = value;
                if (this._CmdGhiSo != null)
                {
                    this._CmdGhiSo.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdHelp
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdHelp;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdHelp_Click);
                if (this._CmdHelp != null)
                {
                    this._CmdHelp.Click -= handler;
                }
                this._CmdHelp = value;
                if (this._CmdHelp != null)
                {
                    this._CmdHelp.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdPrint
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdPrint;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdPrint_Click);
                if (this._CmdPrint != null)
                {
                    this._CmdPrint.Click -= handler;
                }
                this._CmdPrint = value;
                if (this._CmdPrint != null)
                {
                    this._CmdPrint.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdSave
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdSave;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdSave_Click);
                if (this._CmdSave != null)
                {
                    this._CmdSave.Click -= handler;
                }
                this._CmdSave = value;
                if (this._CmdSave != null)
                {
                    this._CmdSave.Click += handler;
                }
            }
        }

        internal virtual Button CmdTimDonHang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdTimDonHang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdTimDonHang_Click);
                if (this._CmdTimDonHang != null)
                {
                    this._CmdTimDonHang.Click -= handler;
                }
                this._CmdTimDonHang = value;
                if (this._CmdTimDonHang != null)
                {
                    this._CmdTimDonHang.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdUnsave
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdUnsave;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdUnsave_Click);
                if (this._CmdUnsave != null)
                {
                    this._CmdUnsave.Click -= handler;
                }
                this._CmdUnsave = value;
                if (this._CmdUnsave != null)
                {
                    this._CmdUnsave.Click += handler;
                }
            }
        }

        internal virtual ComboBox ComboBox1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ComboBox1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ComboBox1 = value;
            }
        }

        internal virtual ComboBox ComboBox2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ComboBox2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ComboBox2 = value;
            }
        }

        internal virtual DateTimePicker DateTimePicker2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._DateTimePicker2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._DateTimePicker2 = value;
            }
        }

        internal virtual DateTimePicker DateTimePicker3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._DateTimePicker3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._DateTimePicker3 = value;
            }
        }

        internal virtual DateTimePicker DateTimePicker4
        {
            [DebuggerNonUserCode]
            get
            {
                return this._DateTimePicker4;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._DateTimePicker4 = value;
            }
        }

        internal virtual DateTimePicker DateTimePicker5
        {
            [DebuggerNonUserCode]
            get
            {
                return this._DateTimePicker5;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._DateTimePicker5 = value;
            }
        }

        public bool EnabledControl
        {
            get
            {
                return this.mEnabledControl;
            }
            set
            {
                this.mEnabledControl = value;
                this.CmdAdd.Enabled = !value & this.mAllowAdd;
                this.CmdEdit.Enabled = !value & this.mAllowEdit;
                this.CmdSave.Enabled = value;
                this.CmdUnsave.Enabled = value;
                this.CmdDel.Enabled = !value & this.mAllowDel;
                this.CmdFind.Enabled = !value;
                this.CmdExit.Enabled = !value;
                this.CmdAddRow.Enabled = value;
                this.CmdDelRow.Enabled = value;
                this.CmdCopy.Enabled = value;
                this.CmdPrint.Enabled = !value;
                this.TxtSoChungTu.ReadOnly = !value;
                this.TxtNgayChungTu.Enabled = value;
                this.CboLoaiTien.Enabled = value;
                this.txtTyGia.ReadOnly = !value;
                this.TxtDienGiai.ReadOnly = !value;
                this.TxtSoHoaDon.ReadOnly = !value;
                this.TxtSoSeri.ReadOnly = !value;
                this.TxtNgayHoaDon.Enabled = value;
                this.TxtThueSuat.ReadOnly = !value;
                this.AdvNhaCungCap.ReadOnly = !value;
                this.AdvTaiKhoanCo.ReadOnly = !value;
                this.AdvTaiKhoanNoThueGTGT.ReadOnly = !value;
                this.TxtHanThanhToan.ReadOnly = !value;
                this.TxtNgayToiHanThanhToan.Enabled = value;
                this.AdvTaiKhoanCoThueGTGT.ReadOnly = !value;
                this.AdvTKThueNhapKhau.ReadOnly = !value;
                this.TxtSoHoaDonThueNK.ReadOnly = !value;
                this.TxtNgayHoaDonNK.Enabled = value;
                this.TxtSoToKhai.ReadOnly = !value;
                this.TxtNgayNopThue.Enabled = value;
                this.TxtHanNopThue.ReadOnly = !value;
                this.CmdGhiSo.Enabled = !value & this.mAllowEdit;
                this.CmdBoGhiSo.Enabled = !value & this.mAllowEdit;
                this.CmdChiPhi.Enabled = !value & this.mAllowEdit;
                this.CmdTimDonHang.Enabled = value;
                this.CKPhanBoPhi.Enabled = value;
                this.TxtSoHopDong.Enabled = value;
                this.AdvTKThanhToan.ReadOnly = !value;
                this.AdvNhaCungCapPhiNK.ReadOnly = !value;
                this.CboLoaiTienCP.Enabled = value;
                this.TxtTyGiaCP.ReadOnly = !value;
                this.CboPhanBoCP.Enabled = value;
                this.CboLoaiHoaDonCP.Enabled = value;
                this.TxtSoHoaDonCP.ReadOnly = !value;
                this.TxtSoSeriCP.ReadOnly = !value;
                this.TxtNgayHoaDonCP.Enabled = value;
                this.TxtThueSuatCP.ReadOnly = !value;
                this.TxtTienPhiCPNT.ReadOnly = !value;
                this.TxtDienGiaiPhiNK.ReadOnly = !value;
                if (!value)
                {
                    this.TxtChiPhiPhanBo.ReadOnly = true;
                    this.CboPhanBo.Enabled = false;
                }
                this.CboKhaiThue.Enabled = value;
            }
        }

        internal virtual GroupBox GroupBox1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox1 = value;
            }
        }

        internal virtual GroupBox GroupBox2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox2 = value;
            }
        }

        internal virtual Label Label1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label1 = value;
            }
        }

        internal virtual Label Label10
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label10;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label10 = value;
            }
        }

        internal virtual Label Label11
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label11;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label11 = value;
            }
        }

        internal virtual Label Label12
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label12;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label12 = value;
            }
        }

        internal virtual Label Label13
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label13;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label13 = value;
            }
        }

        internal virtual Label Label14
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label14;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label14 = value;
            }
        }

        internal virtual Label Label15
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label15;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label15 = value;
            }
        }

        internal virtual Label Label16
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label16;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label16 = value;
            }
        }

        internal virtual Label Label17
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label17;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label17 = value;
            }
        }

        internal virtual Label Label18
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label18;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.Label18_Click);
                if (this._Label18 != null)
                {
                    this._Label18.Click -= handler;
                }
                this._Label18 = value;
                if (this._Label18 != null)
                {
                    this._Label18.Click += handler;
                }
            }
        }

        internal virtual Label Label19
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label19;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label19 = value;
            }
        }

        internal virtual Label Label2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label2 = value;
            }
        }

        internal virtual Label Label20
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label20;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label20 = value;
            }
        }

        internal virtual Label Label21
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label21;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label21 = value;
            }
        }

        internal virtual Label Label22
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label22;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label22 = value;
            }
        }

        internal virtual Label Label23
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label23;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label23 = value;
            }
        }

        internal virtual Label Label24
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label24;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label24 = value;
            }
        }

        internal virtual Label Label25
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label25;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label25 = value;
            }
        }

        internal virtual Label Label26
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label26;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label26 = value;
            }
        }

        internal virtual Label Label27
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label27;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label27 = value;
            }
        }

        internal virtual Label Label28
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label28;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label28 = value;
            }
        }

        internal virtual Label Label29
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label29;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label29 = value;
            }
        }

        internal virtual Label Label30
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label30;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label30 = value;
            }
        }

        internal virtual Label Label31
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label31;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label31 = value;
            }
        }

        internal virtual Label Label32
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label32;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label32 = value;
            }
        }

        internal virtual Label Label33
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label33;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label33 = value;
            }
        }

        internal virtual Label Label34
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label34;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label34 = value;
            }
        }

        internal virtual Label Label35
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label35;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label35 = value;
            }
        }

        internal virtual Label Label36
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label36;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label36 = value;
            }
        }

        internal virtual Label Label37
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label37;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label37 = value;
            }
        }

        internal virtual Label Label38
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label38;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label38 = value;
            }
        }

        internal virtual Label Label39
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label39;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label39 = value;
            }
        }

        internal virtual Label Label4
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label4;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label4 = value;
            }
        }

        internal virtual Label Label40
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label40;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label40 = value;
            }
        }

        internal virtual Label Label41
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label41;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label41 = value;
            }
        }

        internal virtual Label Label42
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label42;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label42 = value;
            }
        }

        internal virtual Label Label43
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label43;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label43 = value;
            }
        }

        internal virtual Label Label44
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label44;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label44 = value;
            }
        }

        internal virtual Label Label45
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label45;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label45 = value;
            }
        }

        internal virtual Label Label46
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label46;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label46 = value;
            }
        }

        internal virtual Label Label47
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label47;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label47 = value;
            }
        }

        internal virtual Label Label48
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label48;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label48 = value;
            }
        }

        internal virtual Label Label49
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label49;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label49 = value;
            }
        }

        internal virtual Label Label5
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label5;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label5 = value;
            }
        }

        internal virtual Label Label50
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label50;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label50 = value;
            }
        }

        internal virtual Label Label51
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label51;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label51 = value;
            }
        }

        internal virtual Label Label52
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label52;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label52 = value;
            }
        }

        internal virtual Label Label53
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label53;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label53 = value;
            }
        }

        internal virtual Label Label54
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label54;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label54 = value;
            }
        }

        internal virtual Label Label55
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label55;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label55 = value;
            }
        }

        internal virtual Label Label56
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label56;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label56 = value;
            }
        }

        internal virtual Label Label57
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label57;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label57 = value;
            }
        }

        internal virtual Label Label58
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label58;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label58 = value;
            }
        }

        internal virtual Label Label59
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label59;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label59 = value;
            }
        }

        internal virtual Label Label6
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label6;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label6 = value;
            }
        }

        internal virtual Label Label60
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label60;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label60 = value;
            }
        }

        internal virtual Label Label61
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label61;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label61 = value;
            }
        }

        internal virtual Label Label62
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label62;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label62 = value;
            }
        }

        internal virtual Label Label63
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label63;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label63 = value;
            }
        }

        internal virtual Label Label64
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label64;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label64 = value;
            }
        }

        internal virtual Label Label65
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label65;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label65 = value;
            }
        }

        internal virtual Label Label66
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label66;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label66 = value;
            }
        }

        internal virtual Label Label67
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label67;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label67 = value;
            }
        }

        internal virtual Label Label68
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label68;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label68 = value;
            }
        }

        internal virtual Label Label69
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label69;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label69 = value;
            }
        }

        internal virtual Label Label8
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label8;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label8 = value;
            }
        }

        internal virtual Label Label9
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label9;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label9 = value;
            }
        }

        internal virtual Panel Panel4
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel4;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel4 = value;
            }
        }

        internal virtual Panel Panel5
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel5;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel5 = value;
            }
        }

        internal virtual TextBox TextBox2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TextBox2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TextBox2 = value;
            }
        }

        internal virtual TextBox TextBox3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TextBox3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TextBox3 = value;
            }
        }

        internal virtual TextBox TextBox4
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TextBox4;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TextBox4 = value;
            }
        }

        internal virtual TextBox TextBox5
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TextBox5;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TextBox5 = value;
            }
        }

        internal virtual TextBox TextBox6
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TextBox6;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TextBox6 = value;
            }
        }

        internal virtual TextBox TextBox7
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TextBox7;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TextBox7 = value;
            }
        }

        internal virtual ToolStrip ToolStrip1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStrip1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStrip1 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripButton1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripButton1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripButton1 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator1 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator2 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator3 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator5
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator5;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator5 = value;
            }
        }

        internal virtual C1NumericEdit TxtChiPhiPhanBo
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtChiPhiPhanBo;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtChiPhiPhanBo_TextChanged);
                EventHandler handler2 = new EventHandler(this.TxtChiPhiPhanBo_LostFocus);
                if (this._TxtChiPhiPhanBo != null)
                {
                    this._TxtChiPhiPhanBo.TextChanged -= handler;
                    this._TxtChiPhiPhanBo.ValueChanged -= handler2;
                }
                this._TxtChiPhiPhanBo = value;
                if (this._TxtChiPhiPhanBo != null)
                {
                    this._TxtChiPhiPhanBo.TextChanged += handler;
                    this._TxtChiPhiPhanBo.ValueChanged += handler2;
                }
            }
        }

        internal virtual C1NumericEdit TxtCongPhi
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtCongPhi;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtCongPhi = value;
            }
        }

        internal virtual C1NumericEdit TxtCongPhiNT
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtCongPhiNT;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtCongPhiNT = value;
            }
        }

        internal virtual TextBox TxtDienGiai
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtDienGiai;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtDienGiai_LostFocus);
                if (this._TxtDienGiai != null)
                {
                    this._TxtDienGiai.LostFocus -= handler;
                }
                this._TxtDienGiai = value;
                if (this._TxtDienGiai != null)
                {
                    this._TxtDienGiai.LostFocus += handler;
                }
            }
        }

        internal virtual TextBox TxtDienGiaiPhiNK
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtDienGiaiPhiNK;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtDienGiaiPhiNK = value;
            }
        }

        internal virtual C1NumericEdit TxtHanNopThue
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtHanNopThue;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtHanNopThue_LostFocus);
                if (this._TxtHanNopThue != null)
                {
                    this._TxtHanNopThue.ValueChanged -= handler;
                }
                this._TxtHanNopThue = value;
                if (this._TxtHanNopThue != null)
                {
                    this._TxtHanNopThue.ValueChanged += handler;
                }
            }
        }

        internal virtual C1NumericEdit TxtHanThanhToan
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtHanThanhToan;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtHanThanhToan_LostFocus);
                if (this._TxtHanThanhToan != null)
                {
                    this._TxtHanThanhToan.ValueChanged -= handler;
                }
                this._TxtHanThanhToan = value;
                if (this._TxtHanThanhToan != null)
                {
                    this._TxtHanThanhToan.ValueChanged += handler;
                }
            }
        }

        internal virtual DateTimePicker TxtNgayChungTu
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtNgayChungTu;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtNgayChungTu = value;
            }
        }

        internal virtual DateTimePicker TxtNgayDathang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtNgayDathang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtNgayDathang = value;
            }
        }

        internal virtual DateTimePicker TxtNgayHoaDon
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtNgayHoaDon;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtNgayHoaDon = value;
            }
        }

        internal virtual DateTimePicker TxtNgayHoaDonCP
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtNgayHoaDonCP;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtNgayHoaDonCP = value;
            }
        }

        internal virtual DateTimePicker TxtNgayHoaDonNK
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtNgayHoaDonNK;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtNgayHoaDonNK = value;
            }
        }

        internal virtual DateTimePicker TxtNgayNopThue
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtNgayNopThue;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtNgayNopThue_TextChanged);
                if (this._TxtNgayNopThue != null)
                {
                    this._TxtNgayNopThue.ValueChanged -= handler;
                }
                this._TxtNgayNopThue = value;
                if (this._TxtNgayNopThue != null)
                {
                    this._TxtNgayNopThue.ValueChanged += handler;
                }
            }
        }

        internal virtual DateTimePicker TxtNgayToiHanThanhToan
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtNgayToiHanThanhToan;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtNgayToiHanThanhToan = value;
            }
        }

        internal virtual TextBox TxtSoChungTu
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoChungTu;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoChungTu = value;
            }
        }

        internal virtual TextBox TxtSoDonHang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoDonHang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoDonHang = value;
            }
        }

        internal virtual TextBox TxtSoHoaDon
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoHoaDon;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtSoHoaDon_TextChanged);
                if (this._TxtSoHoaDon != null)
                {
                    this._TxtSoHoaDon.TextChanged -= handler;
                }
                this._TxtSoHoaDon = value;
                if (this._TxtSoHoaDon != null)
                {
                    this._TxtSoHoaDon.TextChanged += handler;
                }
            }
        }

        internal virtual TextBox TxtSoHoaDonCP
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoHoaDonCP;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoHoaDonCP = value;
            }
        }

        internal virtual TextBox TxtSoHoaDonThueNK
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoHoaDonThueNK;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoHoaDonThueNK = value;
            }
        }

        internal virtual TextBox TxtSoHopDong
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoHopDong;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoHopDong = value;
            }
        }

        internal virtual C1NumericEdit TxtSoLuong
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoLuong;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoLuong = value;
            }
        }

        internal virtual TextBox TxtSoSeri
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoSeri;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoSeri = value;
            }
        }

        internal virtual TextBox TxtSoSeriCP
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoSeriCP;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoSeriCP = value;
            }
        }

        internal virtual TextBox TxtSoToKhai
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoToKhai;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoToKhai = value;
            }
        }

        internal virtual C1NumericEdit TxtThueSuat
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtThueSuat;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtThueSuat_ValueChanged);
                if (this._TxtThueSuat != null)
                {
                    this._TxtThueSuat.ValueChanged -= handler;
                }
                this._TxtThueSuat = value;
                if (this._TxtThueSuat != null)
                {
                    this._TxtThueSuat.ValueChanged += handler;
                }
            }
        }

        internal virtual C1NumericEdit TxtThueSuatCP
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtThueSuatCP;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtThueSuatCP = value;
            }
        }

        internal virtual C1NumericEdit TxtTienPhiCP
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTienPhiCP;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTienPhiCP = value;
            }
        }

        internal virtual C1NumericEdit TxtTienPhiCPNT
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTienPhiCPNT;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtTienPhiCPNT_ValueChanged);
                if (this._TxtTienPhiCPNT != null)
                {
                    this._TxtTienPhiCPNT.ValueChanged -= handler;
                }
                this._TxtTienPhiCPNT = value;
                if (this._TxtTienPhiCPNT != null)
                {
                    this._TxtTienPhiCPNT.ValueChanged += handler;
                }
            }
        }

        internal virtual C1NumericEdit TxtTienThuePhi
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTienThuePhi;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTienThuePhi = value;
            }
        }

        internal virtual C1NumericEdit TxtTienThuePhiNT
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTienThuePhiNT;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTienThuePhiNT = value;
            }
        }

        internal virtual C1NumericEdit TxtTongCong
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTongCong;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTongCong = value;
            }
        }

        internal virtual C1NumericEdit TxtTongThanhToan
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTongThanhToan;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTongThanhToan = value;
            }
        }

        internal virtual C1NumericEdit TxtTongThanhToanNT
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTongThanhToanNT;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTongThanhToanNT = value;
            }
        }

        internal virtual C1NumericEdit TxtTongThuePhiNK
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTongThuePhiNK;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTongThuePhiNK = value;
            }
        }

        internal virtual C1NumericEdit TxtTongThuePhiNKNT
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTongThuePhiNKNT;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTongThuePhiNKNT = value;
            }
        }

        internal virtual C1NumericEdit TxtTongTienHang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTongTienHang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTongTienHang = value;
            }
        }

        internal virtual C1NumericEdit TxtTongTienHangNT
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTongTienHangNT;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTongTienHangNT = value;
            }
        }

        internal virtual C1NumericEdit TxtTongTienPhi
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTongTienPhi;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTongTienPhi = value;
            }
        }

        internal virtual C1NumericEdit TxtTongTienPhiNK
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTongTienPhiNK;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTongTienPhiNK = value;
            }
        }

        internal virtual C1NumericEdit TxtTongTienPhiNKNT
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTongTienPhiNKNT;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTongTienPhiNKNT = value;
            }
        }

        internal virtual C1NumericEdit TxtTongTienPhiNT
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTongTienPhiNT;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTongTienPhiNT = value;
            }
        }

        internal virtual C1NumericEdit TxtTongTienThue
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTongTienThue;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTongTienThue = value;
            }
        }

        internal virtual C1NumericEdit TxtTongTienThueNhapKhau
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTongTienThueNhapKhau;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTongTienThueNhapKhau = value;
            }
        }

        internal virtual C1NumericEdit TxtTongTienThueNhapKhauNT
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTongTienThueNhapKhauNT;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTongTienThueNhapKhauNT = value;
            }
        }

        internal virtual C1NumericEdit TxtTongTienThueNT
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTongTienThueNT;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTongTienThueNT = value;
            }
        }

        internal virtual C1NumericEdit txtTyGia
        {
            [DebuggerNonUserCode]
            get
            {
                return this._txtTyGia;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.txtTyGia_LostFocus);
                if (this._txtTyGia != null)
                {
                    this._txtTyGia.ValueChanged -= handler;
                }
                this._txtTyGia = value;
                if (this._txtTyGia != null)
                {
                    this._txtTyGia.ValueChanged += handler;
                }
            }
        }

        internal virtual C1NumericEdit TxtTyGiaCP
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTyGiaCP;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTyGiaCP = value;
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSlist
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSlist;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                RowColEventHandler handler = new RowColEventHandler(this.VSlist_BeforeEdit);
                RowColEventHandler handler2 = new RowColEventHandler(this.VSlist_AfterEdit);
                RowColEventHandler handler3 = new RowColEventHandler(this.VSlist_CellButtonClick);
                if (this._VSlist != null)
                {
                    this._VSlist.BeforeEdit -= handler;
                    this._VSlist.AfterEdit -= handler2;
                    this._VSlist.CellButtonClick -= handler3;
                }
                this._VSlist = value;
                if (this._VSlist != null)
                {
                    this._VSlist.BeforeEdit += handler;
                    this._VSlist.AfterEdit += handler2;
                    this._VSlist.CellButtonClick += handler3;
                }
            }
        }
    }
}

